diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-02-22 12:28:26 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-22 12:28:26 -0800 |
commit | 070f6fed052ca0cf6625f6566d23c71530d7abf9 (patch) | |
tree | c57a80e0f3dcfee9c129f8a4252c5abb035c9f89 /t/t7400-submodule-basic.sh | |
parent | Merge branch 'ab/merge-file-prefix' (diff) | |
parent | git-submodule.sh: fix '/././' path normalization (diff) | |
download | tgif-070f6fed052ca0cf6625f6566d23c71530d7abf9.tar.xz |
Merge branch 'ps/submodule-sanitize-path-upon-add'
"git submodule add" failed to squash "path/to/././submodule" to
"path/to/submodule".
* ps/submodule-sanitize-path-upon-add:
git-submodule.sh: fix '/././' path normalization
Diffstat (limited to 't/t7400-submodule-basic.sh')
-rwxr-xr-x | t/t7400-submodule-basic.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 7c88245031..5811a982f4 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -171,6 +171,23 @@ test_expect_success 'submodule add with ./ in path' ' test_cmp empty untracked ' +test_expect_success 'submodule add with /././ in path' ' + echo "refs/heads/master" >expect && + >empty && + + ( + cd addtest && + git submodule add "$submodurl" dotslashdotsubmod/././frotz/./ && + git submodule init + ) && + + rm -f heads head untracked && + inspect addtest/dotslashdotsubmod/frotz ../../.. && + test_cmp expect heads && + test_cmp expect head && + test_cmp empty untracked +' + test_expect_success 'submodule add with // in path' ' echo "refs/heads/master" >expect && >empty && |