diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-08-16 02:20:32 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-15 21:00:20 -0700 |
commit | 1d6249e609289940dca179b626fe4ae5433c90cc (patch) | |
tree | 030ff55edcc9723bac9c9b6f4e286f0d83bda377 /t/t7001-mv.sh | |
parent | 66c4509b73eeb66de3196a43e3171b3764f74100 (diff) | |
download | git-1d6249e609289940dca179b626fe4ae5433c90cc.tar.gz |
git-mv: succeed even if source is a prefix of destination
As noted by Fredrik Kuivinen, without this patch, git-mv fails on
git-mv README README-renamed
because "README" is a prefix of "README-renamed".
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t7001-mv.sh')
-rwxr-xr-x | t/t7001-mv.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh index 900ca93cde..e5e0bb9d51 100755 --- a/t/t7001-mv.sh +++ b/t/t7001-mv.sh @@ -60,6 +60,10 @@ test_expect_success \ grep -E "^R100.+path0/README.+path2/README"' test_expect_success \ + 'succeed when source is a prefix of destination' \ + 'git-mv path2/COPYING path2/COPYING-renamed' + +test_expect_success \ 'moving whole subdirectory into subdirectory' \ 'git-mv path2 path1' |