X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=reachable.c;h=6383401e2dd6bef3251a105ac136312dfdcdeb3c;hb=04d70bebe72c264a1c4d26cbe306672e3e4098e3;hp=c1aee603e7df68d6a12ce25b183c478d7da6ab4e;hpb=8d2244ba74f5207b9f7f9f1b4efbcccacbbb2c7b;p=git.git diff --git a/reachable.c b/reachable.c index c1aee603e..6383401e2 100644 --- a/reachable.c +++ b/reachable.c @@ -55,7 +55,7 @@ static void process_tree(struct tree *tree, while (tree_entry(&desc, &entry)) { if (S_ISDIR(entry.mode)) process_tree(lookup_tree(entry.sha1), p, &me, entry.path); - else if (S_ISDIRLNK(entry.mode)) + else if (S_ISGITLINK(entry.mode)) process_gitlink(entry.sha1, p, &me, entry.path); else process_blob(lookup_blob(entry.sha1), p, &me, entry.path); @@ -176,7 +176,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_ISDIRLNK(ntohl(active_cache[i]->ce_mode))) + if (S_ISGITLINK(ntohl(active_cache[i]->ce_mode))) continue; lookup_blob(active_cache[i]->sha1);