diff options
Diffstat (limited to 'reachable.c')
-rw-r--r-- | reachable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/reachable.c b/reachable.c index 96a984c693..3b1c18ff9b 100644 --- a/reachable.c +++ b/reachable.c @@ -182,7 +182,7 @@ static void add_cache_refs(struct rev_info *revs) * lookup_blob() on them, to avoid populating the hash table * with invalid information */ - if (S_ISGITLINK(ntohl(active_cache[i]->ce_mode))) + if (S_ISGITLINK(active_cache[i]->ce_mode)) continue; lookup_blob(active_cache[i]->sha1); @@ -221,6 +221,7 @@ void mark_reachable_objects(struct rev_info *revs, int mark_reflog) * Set up the revision walk - this will move all commits * from the pending list to the commit walking list. */ - prepare_revision_walk(revs); + if (prepare_revision_walk(revs)) + die("revision walk setup failed"); walk_commit_list(revs); } |