mirror of
https://github.com/git/git.git
synced 2024-10-30 13:57:54 +01:00
Merge branch 'jc/ls-remote-short-help'
* jc/ls-remote-short-help: ls-remote: a lone "-h" is asking for help
This commit is contained in:
commit
f52237576a
1 changed files with 3 additions and 0 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue