We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720ec6b commit c8ba6b1Copy full SHA for c8ba6b1
t/t7001-mv.sh
@@ -58,6 +58,14 @@ test_expect_success \
58
test ! -f path0/untracked1 &&
59
test ! -f path0/untracked2'
60
61
+test_expect_failure \
62
+ 'checking -f on untracked file with existing target' \
63
+ 'touch path0/untracked1 &&
64
+ git mv -f untracked1 path0
65
+ test ! -f .git/index.lock &&
66
+ test -f untracked1 &&
67
+ test -f path0/untracked1'
68
+
69
# clean up the mess in case bad things happen
70
rm -f idontexist untracked1 untracked2 \
71
path0/idontexist path0/untracked1 path0/untracked2 \
0 commit comments