sha1_file: refactor has_sha1_file_with_flags
[gitweb.git] / builtin / clone.c
index 743f16ae2aad7d71789f2b38287aea13cf29fc26..a2ea019c590190a00d1a7cf51a917c7ebdc7886c 100644 (file)
@@ -360,7 +360,7 @@ static void copy_alternates(struct strbuf *src, struct strbuf *dst,
         * to turn entries with paths relative to the original
         * absolute, so that they can be used in the new repository.
         */
-       FILE *in = fopen(src->buf, "r");
+       FILE *in = xfopen(src->buf, "r");
        struct strbuf line = STRBUF_INIT;
 
        while (strbuf_getline(&line, in) != EOF) {