Unify write_index_file functions
[gitweb.git] / builtin-branch.c
index 8956d0f84213afbd0e53e39bc863c05960f524f0..a5b6bbef6e903991cf70fd5978f5f89c48c60fb5 100644 (file)
@@ -462,7 +462,7 @@ static void create_branch(const char *name, const char *start_name,
                die("Not a valid branch point: '%s'.", start_name);
        hashcpy(sha1, commit->object.sha1);
 
-       lock = lock_any_ref_for_update(ref, NULL);
+       lock = lock_any_ref_for_update(ref, NULL, 0);
        if (!lock)
                die("Failed to lock ref for update: %s.", strerror(errno));