sha1_file: refactor has_sha1_file_with_flags
[gitweb.git] / builtin / fast-export.c
index 24e29ad7eab5edc0964a51f32602b062daabb907..2dfed874546efc1135e09199dbfb7f803d02d91a 100644 (file)
@@ -907,9 +907,7 @@ static void export_marks(char *file)
 static void import_marks(char *input_file)
 {
        char line[512];
-       FILE *f = fopen(input_file, "r");
-       if (!f)
-               die_errno("cannot read '%s'", input_file);
+       FILE *f = xfopen(input_file, "r");
 
        while (fgets(line, sizeof(line), f)) {
                uint32_t mark;