Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Strip namelen out of ce_flags into a ce_namelen field
[gitweb.git]
/
builtin
/
apply.c
diff --git
a/builtin/apply.c
b/builtin/apply.c
index b4428ea34f53d94e3733796777866e73531f06b5..19e824255594732aabcefaf5055552ca350a303c 100644
(file)
--- a/
builtin/apply.c
+++ b/
builtin/apply.c
@@
-3510,7
+3510,8
@@
static void add_index_file(const char *path, unsigned mode, void *buf, unsigned
ce = xcalloc(1, ce_size);
memcpy(ce->name, path, namelen);
ce->ce_mode = create_ce_mode(mode);
- ce->ce_flags = namelen;
+ ce->ce_flags = create_ce_flags(0);
+ ce->ce_namelen = namelen;
if (S_ISGITLINK(mode)) {
const char *s = buf;