Skip to content

Commit c045383

Browse files
committed
Merge branch 'pt/t7800-difftool-test-racefix'
Test fixup. * pt/t7800-difftool-test-racefix: t7800: fix racy "difftool --dir-diff syncs worktree" test
2 parents 8745eae + 0b495cd commit c045383

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t7800-difftool.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,21 +647,21 @@ test_expect_success SYMLINKS 'difftool --dir-diff --symlinks without unstaged ch
647647
'
648648

649649
write_script modify-right-file <<\EOF
650-
echo "new content" >"$2/file"
650+
echo "modified content" >"$2/file"
651651
EOF
652652

653653
run_dir_diff_test 'difftool --dir-diff syncs worktree with unstaged change' '
654654
test_when_finished git reset --hard &&
655655
echo "orig content" >file &&
656656
git difftool -d $symlinks --extcmd "$PWD/modify-right-file" branch &&
657-
echo "new content" >expect &&
657+
echo "modified content" >expect &&
658658
test_cmp expect file
659659
'
660660

661661
run_dir_diff_test 'difftool --dir-diff syncs worktree without unstaged change' '
662662
test_when_finished git reset --hard &&
663663
git difftool -d $symlinks --extcmd "$PWD/modify-right-file" branch &&
664-
echo "new content" >expect &&
664+
echo "modified content" >expect &&
665665
test_cmp expect file
666666
'
667667

0 commit comments

Comments
 (0)