diff --git a/write-tree.c b/write-tree.c
index f866059f24bacd314fa4a979334a9893dbfc19ba..addb5de3b6ea5a84ea71293aee5b50f1e70ea720 100644 (file)
--- a/write-tree.c
+++ b/write-tree.c
funny = 0;
for (i = 0; i < entries; i++) {
struct cache_entry *ce = active_cache[i];
- if (ntohs(ce->ce_flags) & ~CE_NAMEMASK) {
+ if (ce_stage(ce)) {
if (10 < ++funny) {
fprintf(stderr, "...\n");
break;