Skip to content

Commit f522375

Browse files
committed
Merge branch 'jc/ls-remote-short-help'
* jc/ls-remote-short-help: ls-remote: a lone "-h" is asking for help
2 parents f6be8fb + 91a640f commit f522375

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builtin/ls-remote.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
4343
struct transport *transport;
4444
const struct ref *ref;
4545

46+
if (argc == 2 && !strcmp("-h", argv[1]))
47+
usage(ls_remote_usage);
48+
4649
for (i = 1; i < argc; i++) {
4750
const char *arg = argv[i];
4851

0 commit comments

Comments
 (0)