summaryrefslogtreecommitdiff
path: root/t/t7400-submodule-basic.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2009-02-07 13:43:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-02-07 20:49:50 (GMT)
commitf3670a5749d704fe1edee4201f9b23adbf0bf967 (patch)
treef18cd7bcb5e39a69ec4baedf496a544bdf109f19 /t/t7400-submodule-basic.sh
parent621f1b4bcf40f1469fc59202248df35619e33c82 (diff)
downloadgit-f3670a5749d704fe1edee4201f9b23adbf0bf967.zip
git-f3670a5749d704fe1edee4201f9b23adbf0bf967.tar.gz
git-f3670a5749d704fe1edee4201f9b23adbf0bf967.tar.bz2
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-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 2ec7ac6..a74f24c 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