author | Josef Weidendorfer <Josef.Weidendorfer@gmx.de> | |
Fri, 3 Mar 2006 16:23:32 +0000 (17:23 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 3 Mar 2006 19:28:28 +0000 (11:28 -0800) | ||
commit | 90924d55c5fc4205b2d41821a3288d478aa661a0 | |
tree | 5e4623fdbbfd3d04665f2ace8d8dc1bbf77d4d7a | tree | snapshot |
parent | 8e69b31e0da6e5a540a3ca2ca16d59f3411385bc | commit | diff |
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 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 | diff | blob | history | |
t/t7001-mv.sh | diff | blob | history |