git-mv: fix moves into a subdir from outside
commit90924d55c5fc4205b2d41821a3288d478aa661a0
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Fri, 3 Mar 2006 16:23:32 +0000 (3 17:23 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 3 Mar 2006 19:28:28 +0000 (3 11:28 -0800)
tree5e4623fdbbfd3d04665f2ace8d8dc1bbf77d4d7a
parent8e69b31e0da6e5a540a3ca2ca16d59f3411385bc
git-mv: fix moves into a subdir from outside

git-mv needs to be run from the base directory so that
the check if a file is under revision also covers files
outside of a subdirectory. Previously, e.g. in the git repo,

  cd Documentation; git-mv ../README .

produced the error

  Error: '../README' not under version control

The test is extended for this case; it previously only tested
one direction.

Signed-off-by: Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-mv.perl
t/t7001-mv.sh