builtin-fsck: reports missing parent commits
[gitweb.git] / builtin-fetch-pack.c
index 807fa93b53ad16552b7d869470f2ab59a325808a..410414d91fc5249a2152600f5a7fb5d90745942d 100644 (file)
@@ -385,7 +385,6 @@ static int everything_local(struct ref **refs, int nr_match, char **match)
        int retval;
        unsigned long cutoff = 0;
 
-       track_object_refs = 0;
        save_commit_buffer = 0;
 
        for (ref = *refs; ref; ref = ref->next) {
@@ -783,7 +782,6 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
                        unlink(shallow);
                        rollback_lock_file(&lock);
                } else {
-                       close(fd);
                        commit_lock_file(&lock);
                }
        }