projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make "diff-tree" have similar behaviour as "ls-tree" wrt line termination.
[git.git]
/
checkout-cache.c
diff --git
a/checkout-cache.c
b/checkout-cache.c
index
fa78645
..
8d5e4cd
100644
(file)
--- a/
checkout-cache.c
+++ b/
checkout-cache.c
@@
-77,7
+77,7
@@
static int write_entry(struct cache_entry *ce)
return error("checkout-cache: unable to read sha1 file of %s (%s)",
ce->name, sha1_to_hex(ce->sha1));
}
return error("checkout-cache: unable to read sha1 file of %s (%s)",
ce->name, sha1_to_hex(ce->sha1));
}
- fd = create_file(ce->name,
ce->st_mode
);
+ fd = create_file(ce->name,
ntohl(ce->ce_mode)
);
if (fd < 0) {
free(new);
return error("checkout-cache: unable to create %s (%s)",
if (fd < 0) {
free(new);
return error("checkout-cache: unable to create %s (%s)",