Commit eb217db
committed
improve index mode for executable files
The fix for #430 in bebc4f5 (Use correct mode for executable files,
2016-05-19) is incomplete. It fails (in most cases) when files have
modes which are not exactly 0644 or 0755.
As git only cares about executable or or not in this case, ensure the
mode we set for the index is either 100644 or 100755. Do this similarly
to how upstream git does it in cache.h¹.
Fixes #1253
¹ https://github.com/git/git/blob/v2.31.1/cache.h#L2471 parent ea43def commit eb217db
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments