ref_transaction_delete(): remove "have_old" parameter
[gitweb.git] / builtin / fetch.c
index 7b84d35d83498bc51b06915818f63d1f365eec91..719bf4f244ba5e6dcb40c9c8e578aa1cdfeee53e 100644 (file)
@@ -416,8 +416,10 @@ static int s_update_ref(const char *action,
 
        transaction = ref_transaction_begin(&err);
        if (!transaction ||
-           ref_transaction_update(transaction, ref->name, ref->new_sha1,
-                                  ref->old_sha1, 0, check_old, msg, &err))
+           ref_transaction_update(transaction, ref->name,
+                                  ref->new_sha1,
+                                  check_old ? ref->old_sha1 : NULL,
+                                  0, msg, &err))
                goto fail;
 
        ret = ref_transaction_commit(transaction, &err);