]> git.ipfire.org Git - thirdparty/git.git/blobdiff - server-info.c
is_ntfs_dotgit(): only verify the leading segment
[thirdparty/git.git] / server-info.c
index f6c1a3dfb04bff5310a1b930b03478d88c9c2904..5ec5b1d827a54486c83efc802ebc6eb1f40062c4 100644 (file)
@@ -53,7 +53,7 @@ static int add_info_ref(const char *path, const struct object_id *oid,
                        int flag, void *cb_data)
 {
        FILE *fp = cb_data;
-       struct object *o = parse_object(oid->hash);
+       struct object *o = parse_object(oid);
        if (!o)
                return -1;
 
@@ -133,7 +133,7 @@ static int read_pack_info_file(const char *infofile)
        char line[1000];
        int old_cnt = 0;
 
-       fp = fopen(infofile, "r");
+       fp = fopen_or_warn(infofile, "r");
        if (!fp)
                return 1; /* nonexistent is not an error. */