aboutsummaryrefslogtreecommitdiff
path: root/write-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'write-tree.c')
-rw-r--r--write-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/write-tree.c b/write-tree.c
index f866059f2..addb5de3b 100644
--- a/write-tree.c
+++ b/write-tree.c
@@ -111,7 +111,7 @@ int main(int argc, char **argv)
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;