diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-02-07 14:43:03 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-07 12:49:50 -0800 |
commit | f3670a5749d704fe1edee4201f9b23adbf0bf967 (patch) | |
tree | f18cd7bcb5e39a69ec4baedf496a544bdf109f19 /t/t7400-submodule-basic.sh | |
parent | 621f1b4bcf40f1469fc59202248df35619e33c82 (diff) | |
download | git-f3670a5749d704fe1edee4201f9b23adbf0bf967.tar.gz |
Let ls-files strip trailing slashes in submodules' paths
Tab completion makes it easy to add a trailing slash to a submodule path.
As it is completely clear what the user actually wanted to say, be nice
and strip that slash at the end.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7400-submodule-basic.sh')
-rwxr-xr-x | t/t7400-submodule-basic.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 2ec7ac6a51..a74f24c0db 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -234,4 +234,10 @@ 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_done |