summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-09-27 11:35:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-09-27 11:35:43 -0700
commit424aac653acce98f1bfb7f8b7bf36361f558472d (patch)
tree760542d1cc64bfe430938ccd14d2f9a4eeecb5b5 /builtin
parentGit 2.16.4 (diff)
parentGit 2.15.3 (diff)
downloadtgif-424aac653acce98f1bfb7f8b7bf36361f558472d.tar.xz
Sync with 2.15.3
* maint-2.15: Git 2.15.3 Git 2.14.5 submodule-config: ban submodule paths that start with a dash submodule-config: ban submodule urls that start with dash submodule--helper: use "--" to signal end of clone options
Diffstat (limited to 'builtin')
-rw-r--r--builtin/submodule--helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index 9f658a59a2..13312ac808 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -741,6 +741,7 @@ static int clone_submodule(const char *path, const char *gitdir, const char *url
if (gitdir && *gitdir)
argv_array_pushl(&cp.args, "--separate-git-dir", gitdir, NULL);
+ argv_array_push(&cp.args, "--");
argv_array_push(&cp.args, url);
argv_array_push(&cp.args, path);