builtin/fetch: parse recurse-submodules-default at default options parsing
[gitweb.git] / builtin / pull.c
index da8b60fc85e93da880fb955992b8b753715fafda..69417e4f362f6d7baa11885bd1cb8c5cbb676b14 100644 (file)
@@ -337,8 +337,7 @@ static void get_merge_heads(struct oid_array *merge_heads)
        struct strbuf sb = STRBUF_INIT;
        struct object_id oid;
 
-       if (!(fp = fopen(filename, "r")))
-               die_errno(_("could not open '%s' for reading"), filename);
+       fp = xfopen(filename, "r");
        while (strbuf_getline_lf(&sb, fp) != EOF) {
                if (get_oid_hex(sb.buf, &oid))
                        continue;  /* invalid line: does not start with SHA1 */