Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin/remote.c: rearrange xcalloc arguments
[gitweb.git]
/
tree-walk.c
diff --git
a/tree-walk.c
b/tree-walk.c
index 79dba1d0f4e729b5e62825d347c7e6a9b1455f1d..4dc86c7fe5f66b858b6bd7834a76b1dbbb63a339 100644
(file)
--- a/
tree-walk.c
+++ b/
tree-walk.c
@@
-37,7
+37,7
@@
static void decode_tree_entry(struct tree_desc *desc, const char *buf, unsigned
/* Initialize the descriptor entry */
desc->entry.path = path;
- desc->entry.mode =
mode
;
+ desc->entry.mode =
canon_mode(mode)
;
desc->entry.sha1 = (const unsigned char *)(path + len);
}