diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-08-18 12:42:39 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-21 14:15:43 -0700 |
commit | c5203bdf66531c848a2b6cd74f3c02cb18286c55 (patch) | |
tree | 2e020e22ac6714569a4b2493e724224b07a15d42 /t/t7001-mv.sh | |
parent | [PATCH] git-mv: add more path normalization (diff) | |
download | tgif-c5203bdf66531c848a2b6cd74f3c02cb18286c55.tar.xz |
git-mv: special case destination "."
Since the normalized basename of "." is "", the check for directory
failed erroneously.
Noticed by Fredrik Kuivinen.
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 e5e0bb9d51..b7fcdb390c 100755 --- a/t/t7001-mv.sh +++ b/t/t7001-mv.sh @@ -82,4 +82,8 @@ test_expect_failure \ 'do not move directory over existing directory' \ 'mkdir path0 && mkdir path0/path2 && git-mv path2 path0' +test_expect_success \ + 'move into "."' \ + 'git-mv path1/path2/ .' + test_done |