Merge branch 'sb/send-email-reconfirm-fix' into maint
[gitweb.git] / builtin / blame.c
index cad4111a36a5b880d9d851463ef5f554f56d27d3..ed5d01b36a309a53619c2615aed2382b2aebf056 100644 (file)
@@ -2169,7 +2169,8 @@ static struct commit *fake_working_tree_commit(struct diff_options *opt,
        ce = xcalloc(1, size);
        hashcpy(ce->sha1, origin->blob_sha1);
        memcpy(ce->name, path, len);
-       ce->ce_flags = create_ce_flags(len, 0);
+       ce->ce_flags = create_ce_flags(0);
+       ce->ce_namelen = len;
        ce->ce_mode = create_ce_mode(mode);
        add_cache_entry(ce, ADD_CACHE_OK_TO_ADD|ADD_CACHE_OK_TO_REPLACE);