summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-02-27 11:02:37 -0500
committerEdward Thomson <ethomson@microsoft.com>2015-02-27 13:50:48 -0500
commit496b76d415b080712d7648fc6f1ff2e55d27a6a5 (patch)
tree7e99e25d9dbeb31bdbb9b67142007dd7059985a7
parent96b82b11c64ffcf00e0d10b1bad1b6d1fbfc896c (diff)
downloadlibgit2-496b76d415b080712d7648fc6f1ff2e55d27a6a5.tar.gz
checkout tests: just use SAFE where appropriate
-rw-r--r--tests/checkout/tree.c10
-rw-r--r--tests/checkout/typechange.c3
2 files changed, 4 insertions, 9 deletions
diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c
index 80038871c..7ba9c250f 100644
--- a/tests/checkout/tree.c
+++ b/tests/checkout/tree.c
@@ -15,8 +15,7 @@ void test_checkout_tree__initialize(void)
g_repo = cl_git_sandbox_init("testrepo");
GIT_INIT_STRUCTURE(&g_opts, GIT_CHECKOUT_OPTIONS_VERSION);
- g_opts.checkout_strategy = GIT_CHECKOUT_SAFE |
- GIT_CHECKOUT_RECREATE_MISSING;
+ g_opts.checkout_strategy = GIT_CHECKOUT_FORCE;
}
void test_checkout_tree__cleanup(void)
@@ -409,8 +408,7 @@ void test_checkout_tree__can_checkout_with_pattern(void)
/* now to a narrow patterned checkout */
- g_opts.checkout_strategy = GIT_CHECKOUT_SAFE |
- GIT_CHECKOUT_RECREATE_MISSING;
+ g_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
g_opts.paths.strings = entries;
g_opts.paths.count = 1;
@@ -448,7 +446,6 @@ void test_checkout_tree__can_disable_pattern_match(void)
g_opts.checkout_strategy =
GIT_CHECKOUT_SAFE |
- GIT_CHECKOUT_RECREATE_MISSING |
GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH;
g_opts.paths.strings = entries;
g_opts.paths.count = 1;
@@ -461,8 +458,7 @@ void test_checkout_tree__can_disable_pattern_match(void)
/* let's try that again, but allow the pattern match */
- g_opts.checkout_strategy = GIT_CHECKOUT_SAFE |
- GIT_CHECKOUT_RECREATE_MISSING;
+ g_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
cl_git_pass(git_checkout_tree(g_repo, g_object, &g_opts));
diff --git a/tests/checkout/typechange.c b/tests/checkout/typechange.c
index 4a0b38ae0..c32330950 100644
--- a/tests/checkout/typechange.c
+++ b/tests/checkout/typechange.c
@@ -212,8 +212,7 @@ void test_checkout_typechange__checkout_with_conflicts(void)
p_mkdir("typechanges/d", 0777); /* intentionally empty dir */
force_create_file("typechanges/untracked");
- opts.checkout_strategy = GIT_CHECKOUT_SAFE |
- GIT_CHECKOUT_RECREATE_MISSING;
+ opts.checkout_strategy = GIT_CHECKOUT_SAFE;
memset(&cts, 0, sizeof(cts));
cl_git_fail(git_checkout_tree(g_repo, obj, &opts));