summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-05 13:21:52 +0900
committerJunio C Hamano <gitster@pobox.com>2017-05-05 13:21:52 +0900
commitfc92b0878ccaa128e7c4505788f7c477284f0021 (patch)
tree3bdbf4c34ebd3cadfd54c3cfff66cc95e13b5571 /shell.c
parentc3808ca6982b0ad7ee9b87eca9b50b9a24ec08b0 (diff)
parentd61226c1118f749280c050555d83560ca0f3bf71 (diff)
downloadgit-fc92b0878ccaa128e7c4505788f7c477284f0021.tar.gz
Merge branch 'maint-2.9' into maint-2.10
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.c b/shell.c
index 464ee1a201..fe2d314593 100644
--- a/shell.c
+++ b/shell.c
@@ -13,7 +13,7 @@ static int do_generic_cmd(const char *me, char *arg)
const char *my_argv[4];
setup_path();
- if (!arg || !(arg = sq_dequote(arg)))
+ if (!arg || !(arg = sq_dequote(arg)) || *arg == '-')
die("bad argument");
if (!starts_with(me, "git-"))
die("bad command");