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 | |
parent | 621f1b4bcf40f1469fc59202248df35619e33c82 (diff) | |
download | git-f3670a5749d704fe1edee4201f9b23adbf0bf967.tar.gz git-f3670a5749d704fe1edee4201f9b23adbf0bf967.tar.xz |
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')
-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 2ec7ac6a5..a74f24c0d 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 |