summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-05 13:13:48 +0900
committerJunio C Hamano <gitster@pobox.com>2017-05-05 13:13:48 +0900
commitc93ab42b7480a2c317713385f5ef3f8f2b099c2b (patch)
tree83c645b24b9d62c4ec96099078f314dd99e813fb /shell.c
parent0202c411edc25940cc381bf317badcdf67670be4 (diff)
parentcd0887327544ecdc8778e16219aec3f43b0dd682 (diff)
downloadgit-c93ab42b7480a2c317713385f5ef3f8f2b099c2b.tar.gz
Merge branch 'maint-2.8' into maint-2.9
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");