aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2009-02-07 14:43:03 +0100
committerJunio C Hamano <gitster@pobox.com>2009-02-07 12:49:50 -0800
commitf3670a5749d704fe1edee4201f9b23adbf0bf967 (patch)
treef18cd7bcb5e39a69ec4baedf496a544bdf109f19 /t
parent621f1b4bcf40f1469fc59202248df35619e33c82 (diff)
downloadgit-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-xt/t7400-submodule-basic.sh6
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