diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 22:26:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 22:26:31 -0700 |
commit | e44794706eeb57f2ee38ed1604821aa38b8ad9d2 (patch) | |
tree | c49cd3e4f1dfe4ccbf2b8d00188beaa251fee028 /read-tree.c | |
parent | 9fec8b26eff58e1f595e8619abf1e42c07645ff8 (diff) | |
download | git-e44794706eeb57f2ee38ed1604821aa38b8ad9d2.tar.gz git-e44794706eeb57f2ee38ed1604821aa38b8ad9d2.tar.xz |
Be much more liberal about the file mode bits.
We only really care about the difference between a file being executable
or not (by its owner). Everything else we leave for the user umask to
decide.
Diffstat (limited to 'read-tree.c')
-rw-r--r-- | read-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read-tree.c b/read-tree.c index c4ca86f48..f507f1633 100644 --- a/read-tree.c +++ b/read-tree.c @@ -15,7 +15,7 @@ static int read_one_entry(unsigned char *sha1, const char *base, int baselen, co memset(ce, 0, size); - ce->ce_mode = htonl(mode); + ce->ce_mode = create_ce_mode(mode); ce->ce_flags = create_ce_flags(baselen + len, stage); memcpy(ce->name, base, baselen); memcpy(ce->name + baselen, pathname, len+1); |