diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2014-04-23 19:40:21 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2014-04-23 19:43:35 -0400 |
| commit | a4e2c36a66eca49ae4d7bdf0fdba8d4b3c900ab9 (patch) | |
| tree | ee40998dc75c9df963bc53b97fb40809a3a70769 /tests/merge/workdir/simple.c | |
| parent | 26564d80aa7b340f07e9c5b96457928ebadcc606 (diff) | |
| download | libgit2-a4e2c36a66eca49ae4d7bdf0fdba8d4b3c900ab9.tar.gz | |
merge: checkout default shouldn't clobber given
Diffstat (limited to 'tests/merge/workdir/simple.c')
| -rw-r--r-- | tests/merge/workdir/simple.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/merge/workdir/simple.c b/tests/merge/workdir/simple.c index cf5b16e7a..327408dc9 100644 --- a/tests/merge/workdir/simple.c +++ b/tests/merge/workdir/simple.c @@ -92,7 +92,7 @@ void test_merge_workdir_simple__cleanup(void) cl_git_sandbox_cleanup(); } -static void merge_simple_branch(int merge_file_favor, int checkout_strategy) +static void merge_simple_branch(int merge_file_favor, int addl_checkout_strategy) { git_oid their_oids[1]; git_merge_head *their_heads[1]; @@ -103,7 +103,9 @@ static void merge_simple_branch(int merge_file_favor, int checkout_strategy) cl_git_pass(git_merge_head_from_id(&their_heads[0], repo, &their_oids[0])); merge_opts.file_favor = merge_file_favor; - checkout_opts.checkout_strategy = checkout_strategy; + checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE | GIT_CHECKOUT_ALLOW_CONFLICTS | + addl_checkout_strategy; + cl_git_pass(git_merge(repo, (const git_merge_head **)their_heads, 1, &merge_opts, &checkout_opts)); git_merge_head_free(their_heads[0]); |
