summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-05 04:31:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-05 04:31:40 (GMT)
commitebb1f6fe9d741151a737a8d509fab7339f18af63 (patch)
tree5e7ed69812128a05f4fb2076b4f15341031372ce /shell.c
parent49800c940790cc7465d1b03e08d472ffd8684808 (diff)
parent773e3a2e0226cffac6c813c2d3bea5ba480675d8 (diff)
downloadgit-ebb1f6fe9d741151a737a8d509fab7339f18af63.zip
git-ebb1f6fe9d741151a737a8d509fab7339f18af63.tar.gz
git-ebb1f6fe9d741151a737a8d509fab7339f18af63.tar.bz2
Merge branch 'maint-2.11' into maint
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");