diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-20 23:46:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-20 23:46:07 -0800 |
commit | 6a09ff14fb1df8f05f4a800fca6e2d9d670445bd (patch) | |
tree | 61fadb8d09e3daae125ca15a9024486d7cd9da85 /t | |
parent | 3fa95ce52bdfa2b99b76d64949884413c04ad3cb (diff) | |
parent | 1414e5788b85787a712a30977b388200f1bc04da (diff) | |
download | git-6a09ff14fb1df8f05f4a800fca6e2d9d670445bd.tar.gz |
Merge branch 'jl/submodule-add-noname'
* jl/submodule-add-noname:
git submodule add: make the <path> parameter optional
Diffstat (limited to 't')
-rwxr-xr-x | t/t7400-submodule-basic.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 0f2ccc6cf0..a0cc99ab9f 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -306,4 +306,20 @@ test_expect_success 'submodule <invalid-path> warns' ' ' +test_expect_success 'add submodules without specifying an explicit path' ' + mkdir repo && + cd repo && + git init && + echo r >r && + git add r && + git commit -m "repo commit 1" && + cd .. && + git clone --bare repo/ bare.git && + cd addtest && + git submodule add "$submodurl/repo" && + git config -f .gitmodules submodule.repo.path repo && + git submodule add "$submodurl/bare.git" && + git config -f .gitmodules submodule.bare.path bare +' + test_done |