Code

Let ls-files strip trailing slashes in submodules' paths
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 7 Feb 2009 13:43:03 +0000 (14:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Feb 2009 20:49:50 +0000 (12:49 -0800)
commitf3670a5749d704fe1edee4201f9b23adbf0bf967
treef18cd7bcb5e39a69ec4baedf496a544bdf109f19
parent621f1b4bcf40f1469fc59202248df35619e33c82
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>
builtin-ls-files.c
t/t7400-submodule-basic.sh