summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-09-27 11:20:22 -0700
committerJunio C Hamano <gitster@pobox.com>2018-09-27 11:20:22 -0700
commit902df9f5c45cd99720d4ca0a38d0538eb0126ad7 (patch)
tree31508ce7526984307a09f9e114a2989f668c060e /builtin
parentd33c87517a85f544159b2efa406136dde18a5b9f (diff)
parentd0832b2847aa9669c09397c5639d7fe56abaf9fc (diff)
downloadgit-902df9f5c45cd99720d4ca0a38d0538eb0126ad7.tar.gz
Sync with Git 2.14.4
* maint-2.14: 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 77940499b0..30e0bb876c 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -503,6 +503,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);