]> git.ipfire.org Git - thirdparty/git.git/blobdiff - unpack-trees.c
Merge branch 'mh/pack-protocol-doc-fix'
[thirdparty/git.git] / unpack-trees.c
index 22c41a3ba80971e5edc6bbf02eb6ea59d3c41277..1ccd343cad92dfad3e66deb304811eaf7af9b4fc 100644 (file)
@@ -2386,7 +2386,7 @@ int oneway_merge(const struct cache_entry * const *src,
                if (o->update && S_ISGITLINK(old->ce_mode) &&
                    should_update_submodules() && !verify_uptodate(old, o))
                        update |= CE_UPDATE;
-               add_entry(o, old, update, 0);
+               add_entry(o, old, update, CE_STAGEMASK);
                return 0;
        }
        return merged_entry(a, old, o);