summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-05 04:26:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-05 04:26:31 (GMT)
commita849d36cf2877a1890371851710382f463290978 (patch)
tree11c976041beacaa3bb1d7626d042a1026ea2a7eb /shell.c
parent3b9e3c2cede15057af3ff8076c45ad5f33829436 (diff)
parent840ed141983718e0c5518a325534a5656797132a (diff)
downloadgit-a849d36cf2877a1890371851710382f463290978.zip
git-a849d36cf2877a1890371851710382f463290978.tar.gz
git-a849d36cf2877a1890371851710382f463290978.tar.bz2
Merge branch 'maint-2.10' into maint-2.11
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");