Commit a5a46be28fbbc316a4ce0adb5d92571a59a7e115

Stefan Sperling 2021-01-27T22:20:52

in 'got clone', allow -l together with -q, for consistency with 'got fetch'

diff --git a/got/got.1 b/got/got.1
index 16a9b75..5a69c33 100644
--- a/got/got.1
+++ b/got/got.1
@@ -240,6 +240,8 @@ option.
 List branches and tags available for fetching from the remote repository
 and exit immediately.
 Cannot be used together with any of the other options except
+.Fl q
+and
 .Fl v .
 .It Fl m
 Create the cloned repository as a mirror of the original repository.
diff --git a/got/got.c b/got/got.c
index 4cb72ca..f1d6902 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1524,8 +1524,6 @@ cmd_clone(int argc, char *argv[])
 			option_conflict('l', 'a');
 		if (mirror_references)
 			option_conflict('l', 'm');
-		if (verbosity == -1)
-			option_conflict('l', 'q');
 		if (!TAILQ_EMPTY(&wanted_refs))
 			option_conflict('l', 'R');
 	}