Commit 550c9f31 by Vicent Martí

Merge pull request #434 from schu/fix-ref-regression

refs.c: fix reference_rename
parents c36280a0 472fa08f
......@@ -1391,7 +1391,7 @@ int git_reference_rename(git_reference *ref, const char *new_name, int force)
new_ref->name = NULL;
reference_free(new_ref);
if ((error = git_hashtable_insert2(ref->owner->references.loose_cache, ref->name, ref, NULL)) < GIT_SUCCESS)
if ((error = git_hashtable_insert(ref->owner->references.loose_cache, ref->name, ref)) < GIT_SUCCESS)
goto rollback;
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment