Commit 550c9f31bb782f11483f146dd69b1ec7d2e530a3

Vicent Martí 2011-09-30T05:14:04

Merge pull request #434 from schu/fix-ref-regression refs.c: fix reference_rename

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/refs.c b/src/refs.c
index 0acfc19..1135de4 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -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;
 
 	/*