diff options
Diffstat (limited to 'tests/refs/transactions.c')
-rw-r--r-- | tests/refs/transactions.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/refs/transactions.c b/tests/refs/transactions.c index 5284ea82b..39ea1cae5 100644 --- a/tests/refs/transactions.c +++ b/tests/refs/transactions.c @@ -23,7 +23,7 @@ void test_refs_transactions__single_ref_oid(void) git_oid_fromstr(&id, "a65fedf39aefe402d3bb6e24df4d4f5fe4547750"); - cl_git_pass(git_transaction_lock(g_tx, "refs/heads/master")); + cl_git_pass(git_transaction_lock_ref(g_tx, "refs/heads/master")); cl_git_pass(git_transaction_set_target(g_tx, "refs/heads/master", &id, NULL, NULL)); cl_git_pass(git_transaction_commit(g_tx)); @@ -37,7 +37,7 @@ void test_refs_transactions__single_ref_symbolic(void) { git_reference *ref; - cl_git_pass(git_transaction_lock(g_tx, "HEAD")); + cl_git_pass(git_transaction_lock_ref(g_tx, "HEAD")); cl_git_pass(git_transaction_set_symbolic_target(g_tx, "HEAD", "refs/heads/foo", NULL, NULL)); cl_git_pass(git_transaction_commit(g_tx)); @@ -54,8 +54,8 @@ void test_refs_transactions__single_ref_mix_types(void) git_oid_fromstr(&id, "a65fedf39aefe402d3bb6e24df4d4f5fe4547750"); - cl_git_pass(git_transaction_lock(g_tx, "refs/heads/master")); - cl_git_pass(git_transaction_lock(g_tx, "HEAD")); + cl_git_pass(git_transaction_lock_ref(g_tx, "refs/heads/master")); + cl_git_pass(git_transaction_lock_ref(g_tx, "HEAD")); cl_git_pass(git_transaction_set_symbolic_target(g_tx, "refs/heads/master", "refs/heads/foo", NULL, NULL)); cl_git_pass(git_transaction_set_target(g_tx, "HEAD", &id, NULL, NULL)); cl_git_pass(git_transaction_commit(g_tx)); @@ -73,7 +73,7 @@ void test_refs_transactions__single_ref_delete(void) { git_reference *ref; - cl_git_pass(git_transaction_lock(g_tx, "refs/heads/master")); + cl_git_pass(git_transaction_lock_ref(g_tx, "refs/heads/master")); cl_git_pass(git_transaction_remove(g_tx, "refs/heads/master")); cl_git_pass(git_transaction_commit(g_tx)); @@ -88,7 +88,7 @@ void test_refs_transactions__single_create(void) cl_git_fail_with(GIT_ENOTFOUND, git_reference_lookup(&ref, g_repo, name)); - cl_git_pass(git_transaction_lock(g_tx, name)); + cl_git_pass(git_transaction_lock_ref(g_tx, name)); git_oid_fromstr(&id, "a65fedf39aefe402d3bb6e24df4d4f5fe4547750"); cl_git_pass(git_transaction_set_target(g_tx, name, &id, NULL, NULL)); @@ -103,7 +103,7 @@ void test_refs_transactions__unlocked_set(void) { git_oid id; - cl_git_pass(git_transaction_lock(g_tx, "refs/heads/master")); + cl_git_pass(git_transaction_lock_ref(g_tx, "refs/heads/master")); git_oid_fromstr(&id, "a65fedf39aefe402d3bb6e24df4d4f5fe4547750"); cl_git_fail_with(GIT_ENOTFOUND, git_transaction_set_target(g_tx, "refs/heads/foo", &id, NULL, NULL)); cl_git_pass(git_transaction_commit(g_tx)); |