diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-02-10 21:31:08 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-10 21:31:08 -0800 |
commit | 8c5514906a532f154aa0db1199f46bbdeeffb0ad (patch) | |
tree | 1485160c77cf35751367c5966023ddcecd116154 /t | |
parent | Merge branch 'js/maint-1.6.0-path-normalize' (diff) | |
parent | submodule: warn about non-submodules (diff) | |
download | tgif-8c5514906a532f154aa0db1199f46bbdeeffb0ad.tar.xz |
Merge branch 'js/git-submodule-trailing-slash'
* js/git-submodule-trailing-slash:
submodule: warn about non-submodules
Let ls-files strip trailing slashes in submodules' paths
Diffstat (limited to 't')
-rwxr-xr-x | t/t7400-submodule-basic.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 2ec7ac6a51..b8cb2df667 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -234,4 +234,17 @@ test_expect_success 'gracefully add submodule with a trailing slash' ' ' +test_expect_success 'ls-files gracefully handles trailing slash' ' + + test "init" = "$(git ls-files init/)" + +' + +test_expect_success 'submodule <invalid-path> warns' ' + + git submodule no-such-submodule 2> output.err && + grep "^error: .*no-such-submodule" output.err + +' + test_done |