We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 787297b + 0fcd473 commit 07c6066Copy full SHA for 07c6066
1 file changed
t/t7001-mv.sh
@@ -551,4 +551,16 @@ test_expect_success 'moving nested submodules' '
551
git status
552
'
553
554
+test_expect_failure 'nonsense mv triggers assertion failure and partially updated index' '
555
+ test_when_finished git reset --hard HEAD &&
556
+ git reset --hard HEAD &&
557
+ mkdir -p a &&
558
+ mkdir -p b &&
559
+ >a/a.txt &&
560
+ git add a/a.txt &&
561
+ test_must_fail git mv a/a.txt a b &&
562
+ git status --porcelain >actual &&
563
+ grep "^A[ ]*a/a.txt$" actual
564
+'
565
+
566
test_done
0 commit comments