name-rev: refactor logic to see if a new candidate is a better name
[gitweb.git] / fast-import.c
index 4d5a7f58d011545061decbc70e824274091db3e5..41a539f97d94fdd45787c520ceec4b5c2b6102d4 100644 (file)
@@ -1752,7 +1752,7 @@ static int update_branch(struct branch *b)
 
        if (is_null_sha1(b->sha1)) {
                if (b->delete)
-                       delete_ref(b->name, NULL, 0);
+                       delete_ref(NULL, b->name, NULL, 0);
                return 0;
        }
        if (read_ref(b->name, old_sha1))