summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-08 20:20:21 -0700
committerJunio C Hamano <gitster@pobox.com>2017-05-08 20:20:21 -0700
commit09fc7aff1a3ebc20473993e558eba691180706ad (patch)
tree72f5f0742a0d407400cc3995754e5425d3f41713 /shell.c
parent9b669787fc6ebc527df9ad058c4bcaf46bacc267 (diff)
parent95d67879735cfecfdd85f89e59d993c5b4de8835 (diff)
Sync with v2.12.3
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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");