diff options
Diffstat (limited to 'read-tree.c')
-rw-r--r-- | read-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/read-tree.c b/read-tree.c index 9aec97fa73..5c6588da4f 100644 --- a/read-tree.c +++ b/read-tree.c @@ -13,8 +13,8 @@ static int read_one_entry(unsigned char *sha1, const char *base, int baselen, co memset(ce, 0, size); - ce->st_mode = mode; - ce->namelen = baselen + len; + ce->ce_mode = htonl(mode); + ce->ce_namelen = htons(baselen + len); memcpy(ce->name, base, baselen); memcpy(ce->name + baselen, pathname, len+1); memcpy(ce->sha1, sha1, 20); |