summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-05 04:13:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-05 04:13:48 (GMT)
commitc93ab42b7480a2c317713385f5ef3f8f2b099c2b (patch)
tree83c645b24b9d62c4ec96099078f314dd99e813fb /shell.c
parent0202c411edc25940cc381bf317badcdf67670be4 (diff)
parentcd0887327544ecdc8778e16219aec3f43b0dd682 (diff)
downloadgit-c93ab42b7480a2c317713385f5ef3f8f2b099c2b.zip
git-c93ab42b7480a2c317713385f5ef3f8f2b099c2b.tar.gz
git-c93ab42b7480a2c317713385f5ef3f8f2b099c2b.tar.bz2
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 464ee1a..fe2d314 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");