summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 720ec6b)
raw | patch | inline | side by side (parent: 720ec6b)
author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Wed, 4 Feb 2009 09:32:07 +0000 (10:32 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 4 Feb 2009 19:04:56 +0000 (11:04 -0800) |
This currently fails with:
git: builtin-mv.c:217: cmd_mv: Assertion `pos >= 0' failed.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git: builtin-mv.c:217: cmd_mv: Assertion `pos >= 0' failed.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7001-mv.sh | patch | blob | history |
diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh
index 539effe694684dde01da1a93421a28b549b9527a..ef7e56ed6307ba351caaa38d92e0be04a3f920bc 100755 (executable)
--- a/t/t7001-mv.sh
+++ b/t/t7001-mv.sh
test ! -f path0/untracked1 &&
test ! -f path0/untracked2'
+test_expect_failure \
+ 'checking -f on untracked file with existing target' \
+ 'touch path0/untracked1 &&
+ git mv -f untracked1 path0
+ test ! -f .git/index.lock &&
+ test -f untracked1 &&
+ test -f path0/untracked1'
+
# clean up the mess in case bad things happen
rm -f idontexist untracked1 untracked2 \
path0/idontexist path0/untracked1 path0/untracked2 \