Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix 'git commit -a' in a newly initialized repository
[gitweb.git]
/
builtin-apply.c
diff --git
a/builtin-apply.c
b/builtin-apply.c
index 3fefdacd94526b62ac72707d6d80b039f104c06d..abe35387156cf2774c8bc619d74b93c5e83285a8 100644
(file)
--- a/
builtin-apply.c
+++ b/
builtin-apply.c
@@
-1988,7
+1988,7
@@
static int check_patch(struct patch *patch, struct patch *prev_patch)
return error("%s: %s", old_name, strerror(errno));
if (!cached)
- st_mode = ntohl(c
reate_ce_mode(
st.st_mode));
+ st_mode = ntohl(c
e_mode_from_stat(ce,
st.st_mode));
if (patch->is_new < 0)
patch->is_new = 0;