Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2013-03-02 01:37:33 +0400
committerEdward Thomson <ethomson@edwardthomson.com>2013-03-07 21:01:52 +0400
commitd00d54645d931c77a9b401518c0d73e3f640454b (patch)
treee1932dcc97172a53524e9db1ba4923cf137a4f9c /tests-clar/stash
parent6a9ef012376e8a21dcfd0499ab16048eb6e954c3 (diff)
immutable references and a pluggable ref database
Diffstat (limited to 'tests-clar/stash')
-rw-r--r--tests-clar/stash/save.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests-clar/stash/save.c b/tests-clar/stash/save.c
index ea2eb282d..588dfc3ea 100644
--- a/tests-clar/stash/save.c
+++ b/tests-clar/stash/save.c
@@ -193,8 +193,7 @@ void test_stash_save__cannot_stash_against_an_unborn_branch(void)
{
git_reference *head;
- cl_git_pass(git_reference_lookup(&head, repo, "HEAD"));
- cl_git_pass(git_reference_symbolic_set_target(head, "refs/heads/unborn"));
+ cl_git_pass(git_reference_symbolic_create(&head, repo, "HEAD", "refs/heads/unborn", 1));
cl_assert_equal_i(GIT_EORPHANEDHEAD,
git_stash_save(&stash_tip_oid, repo, signature, NULL, GIT_STASH_DEFAULT));