Skip to content

Commit 8acc3b1

Browse files
committed
tests: add merge-conflict branch for testrepo
Add a new branch that causes a merge conflict to `testrepo` so that we are able to test merging in worktrees.
1 parent e5a620d commit 8acc3b1

File tree

7 files changed

+6
-4
lines changed

7 files changed

+6
-4
lines changed

tests/iterator/workdir.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ void test_iterator_workdir__filesystem2(void)
613613
"heads/ident",
614614
"heads/long-file-name",
615615
"heads/master",
616+
"heads/merge-conflict",
616617
"heads/packed-test",
617618
"heads/subtrees",
618619
"heads/test",
@@ -629,7 +630,7 @@ void test_iterator_workdir__filesystem2(void)
629630

630631
cl_git_pass(git_iterator_for_filesystem(
631632
&i, "testrepo/.git/refs", NULL));
632-
expect_iterator_items(i, 14, expect_base, 14, expect_base);
633+
expect_iterator_items(i, 15, expect_base, 15, expect_base);
633634
git_iterator_free(i);
634635
}
635636

tests/refs/list.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void test_refs_list__all(void)
3636
/* We have exactly 12 refs in total if we include the packed ones:
3737
* there is a reference that exists both in the packfile and as
3838
* loose, but we only list it once */
39-
cl_assert_equal_i((int)ref_list.count, 16);
39+
cl_assert_equal_i((int)ref_list.count, 17);
4040

4141
git_strarray_free(&ref_list);
4242
}
@@ -51,7 +51,7 @@ void test_refs_list__do_not_retrieve_references_which_name_end_with_a_lock_exten
5151
"144344043ba4d4a405da03de3844aa829ae8be0e\n");
5252

5353
cl_git_pass(git_reference_list(&ref_list, g_repo));
54-
cl_assert_equal_i((int)ref_list.count, 16);
54+
cl_assert_equal_i((int)ref_list.count, 17);
5555

5656
git_strarray_free(&ref_list);
5757
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a38d028f71eaa590febb7d716b1ca32350cf70da

tests/revwalk/basic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void test_revwalk_basic__glob_heads_with_invalid(void)
177177
/* walking */;
178178

179179
/* git log --branches --oneline | wc -l => 16 */
180-
cl_assert_equal_i(18, i);
180+
cl_assert_equal_i(19, i);
181181
}
182182

183183
void test_revwalk_basic__push_head(void)

0 commit comments

Comments
 (0)