Skip to content

Commit

Permalink
Merge branch 'jc/ls-remote-short-help'
Browse files Browse the repository at this point in the history
* jc/ls-remote-short-help:
  ls-remote: a lone "-h" is asking for help
  • Loading branch information
Junio C Hamano committed Oct 5, 2011
2 parents f6be8fb + 91a640f commit f522375
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin/ls-remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
struct transport *transport;
const struct ref *ref;

if (argc == 2 && !strcmp("-h", argv[1]))
usage(ls_remote_usage);

for (i = 1; i < argc; i++) {
const char *arg = argv[i];

Expand Down

0 comments on commit f522375

Please sign in to comment.