[PATCH] git-mv: add more path normalization
commitd78b0f3d6aa04510dd0c22c3853d3954c5f5b531
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 16 Aug 2006 08:44:02 +0000 (16 10:44 +0200)
committerJunio C Hamano <junkio@cox.net>
Wed, 16 Aug 2006 20:19:06 +0000 (16 13:19 -0700)
tree618b9af0d000d177ba1d1bdadd063a41ee429b82
parent53e1a761be8d338cd957870bc1e48a8c15d7d2c0
[PATCH] git-mv: add more path normalization

We already use the normalization from get_pathspec(), but now we also
remove a trailing slash. So,

git mv some_path/ into_some_path/

works now.

Also, move the "can not move directory into itself" test before the
subdirectory expansion.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-mv.c