Clean-up lock-ref implementation
[gitweb.git] / builtin-update-ref.c
index 90a3da53ad003a82781e6d4acfc7815c8f15f24f..ab528337aac66fb9fa93e86739a897ebffc364d5 100644 (file)
@@ -48,7 +48,7 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
        if (oldval && get_sha1(oldval, oldsha1))
                die("%s: not a valid old SHA1", oldval);
 
-       lock = lock_any_ref_for_update(refname, oldval ? oldsha1 : NULL, 0);
+       lock = lock_any_ref_for_update(refname, oldval ? oldsha1 : NULL);
        if (!lock)
                return 1;
        if (write_ref_sha1(lock, sha1, msg) < 0)