diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-09-27 11:41:02 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-09-27 11:41:02 -0700 |
| commit | e43aab778c72250e11eb00e31dc6be90072a1637 (patch) | |
| tree | 5d798093eb539e50820241325edb45c745c99916 /t/t7417-submodule-path-url.sh | |
| parent | fc54c1af3ec09bab8b8ea09768c2da4069b7f53e (diff) | |
| parent | 27d05d1a1a62273aa3749f4d0ab8a126ef11ff66 (diff) | |
Sync with 2.16.5
* maint-2.16:
Git 2.16.5
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 't/t7417-submodule-path-url.sh')
| -rwxr-xr-x | t/t7417-submodule-path-url.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/t/t7417-submodule-path-url.sh b/t/t7417-submodule-path-url.sh new file mode 100755 index 0000000000..638293f0da --- /dev/null +++ b/t/t7417-submodule-path-url.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +test_description='check handling of .gitmodule path with dash' +. ./test-lib.sh + +test_expect_success 'create submodule with dash in path' ' + git init upstream && + git -C upstream commit --allow-empty -m base && + git submodule add ./upstream sub && + git mv sub ./-sub && + git commit -m submodule +' + +test_expect_success 'clone rejects unprotected dash' ' + test_when_finished "rm -rf dst" && + git clone --recurse-submodules . dst 2>err && + test_i18ngrep ignoring err +' + +test_done |
