diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-05-05 12:17:55 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-05 12:17:55 +0900 |
commit | 5a4ffdf5873bc15af39a59eef4766cc4240ed586 (patch) | |
tree | 0513ab09343450a3b9a5528c884a54933944fbed | |
parent | Git 2.4.11 (diff) | |
parent | shell: disallow repo names beginning with dash (diff) | |
download | tgif-5a4ffdf5873bc15af39a59eef4766cc4240ed586.tar.xz |
Merge branch 'jk/shell-no-repository-that-begins-with-dash' into maint-2.4
* jk/shell-no-repository-that-begins-with-dash:
shell: disallow repo names beginning with dash
-rw-r--r-- | shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |