pack-objects: use reachability bitmap index when generating non-stdout pack
[gitweb.git] / wt-status.c
index c19b52ce8708ebe997f5bc728124a4653014543f..de62ab2149cfb75e0dab2e5093ece630ce49d913 100644 (file)
@@ -432,7 +432,8 @@ static void wt_status_collect_changed_cb(struct diff_queue_struct *q,
                        d->worktree_status = p->status;
                d->dirty_submodule = p->two->dirty_submodule;
                if (S_ISGITLINK(p->two->mode))
-                       d->new_submodule_commits = !!hashcmp(p->one->sha1, p->two->sha1);
+                       d->new_submodule_commits = !!oidcmp(&p->one->oid,
+                                                           &p->two->oid);
        }
 }