hold_locked_index(): move from lockfile.c to read-cache.c
[gitweb.git] / fast-import.c
index 96b0f4236a2083044e4ae1dfa3b8180e3e586ba1..783c6840b5962d82ccce05f20dd921f67ab6006a 100644 (file)
@@ -1832,10 +1832,8 @@ static void dump_marks(void)
        }
 
        if (commit_lock_file(&mark_lock)) {
-               int saved_errno = errno;
-               rollback_lock_file(&mark_lock);
                failure |= error("Unable to commit marks file %s: %s",
-                       export_marks_file, strerror(saved_errno));
+                       export_marks_file, strerror(errno));
                return;
        }
 }