Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5988753

Browse files
committed
merge octopus: clean up octopus failure test
1 parent 14c7ed8 commit 5988753

File tree

1 file changed

+1
-4
lines changed
  • tests/libgit2/merge/octopus

1 file changed

+1
-4
lines changed

tests/libgit2/merge/octopus/fail.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ void test_merge_octopus_fail__fail_to_merge(void)
6565
merge_opts.file_favor = 0;
6666
checkout_opts.checkout_strategy = GIT_CHECKOUT_ALLOW_CONFLICTS;
6767

68-
/* TODO: move this into the cl_git_fail_with call */
69-
int err = git_merge(repo, (const git_annotated_commit **)their_heads, NUM_COMMITS, &merge_opts, &checkout_opts);
70-
71-
cl_git_fail_with(GIT_EMERGECONFLICT, err);
68+
cl_git_fail_with(GIT_EMERGECONFLICT, git_merge(repo, (const git_annotated_commit **)their_heads, NUM_COMMITS, &merge_opts, &checkout_opts));
7269

7370
for(i = 0; i < NUM_COMMITS; ++i) {
7471
git_annotated_commit_free(their_heads[i]);

0 commit comments

Comments
 (0)