summaryrefslogtreecommitdiffstats
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-05 06:13:48 +0200
committerJunio C Hamano <gitster@pobox.com>2017-05-05 06:13:48 +0200
commitc93ab42b7480a2c317713385f5ef3f8f2b099c2b (patch)
tree83c645b24b9d62c4ec96099078f314dd99e813fb /shell.c
parentPrepare for 2.9.4 (diff)
parentGit 2.8.5 (diff)
downloadgit-c93ab42b7480a2c317713385f5ef3f8f2b099c2b.tar.xz
git-c93ab42b7480a2c317713385f5ef3f8f2b099c2b.zip
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");