Skip to content

Commit d6d9e76

Browse files
peffgitster
authored andcommitted
t7607: clean up stray untracked file
This file ends up conflicting with the test just after it (causing the "git merge" to fail). Neither test is to blame for the bug, though. It looks like the merge in 1a9fe45 (Merge branch 'tr/merge-unborn-clobber', 2011-02-09) is what caused the conflict. We didn't notice because the follow-on test is already marked as expect_failure (even though it has since been fixed, and now succeeds once the untracked file is moved out of the way). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8523d07 commit d6d9e76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t7607-merge-overwrite.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ test_expect_success 'will not overwrite untracked file on unborn branch' '
150150
git rm -fr . &&
151151
git checkout --orphan new &&
152152
cp important c0.c &&
153+
test_when_finished "rm c0.c" &&
153154
test_must_fail git merge c0 2>out &&
154155
test_cmp out expect &&
155156
test_path_is_missing .git/MERGE_HEAD &&
@@ -164,7 +165,7 @@ test_expect_success 'set up unborn branch and content' '
164165
echo bar > untracked-file
165166
'
166167

167-
test_expect_failure 'will not clobber WT/index when merging into unborn' '
168+
test_expect_success 'will not clobber WT/index when merging into unborn' '
168169
git merge master &&
169170
grep foo tracked-file &&
170171
git show :tracked-file >expect &&

0 commit comments

Comments
 (0)