projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
940c1bb
)
git-apply: normalize file mode when comparing with expected value
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Tue, 14 Jun 2005 03:41:38 +0000
(20:41 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Tue, 14 Jun 2005 03:41:38 +0000
(20:41 -0700)
Sine git only saves the 'x' bit, we shouldn't compare the stat contents
directly.
apply.c
patch
|
blob
|
history
diff --git
a/apply.c
b/apply.c
index
cf40e5d
..
c0cd152
100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-1000,6
+1000,7
@@
static int check_patch(struct patch *patch)
}
if (patch->is_new < 0)
patch->is_new = 0;
+ st.st_mode = ntohl(create_ce_mode(st.st_mode));
if (!patch->old_mode)
patch->old_mode = st.st_mode;
if ((st.st_mode ^ patch->old_mode) & S_IFMT)