-
-
Notifications
You must be signed in to change notification settings - Fork 957
Commit 14dd881
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.h1.
Fixes #1253
1 https://github.com/git/git/blob/v2.31.1/cache.h#L247 1 parent eae0e37 commit 14dd881
1 file changed
+2
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | + | ||
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
115 | 116 |
| |
116 | 117 |
| |
117 | 118 |
| |
118 | - | ||
119 | + | ||
119 | 120 |
| |
120 | 121 |
| |
121 | 122 |
| |
|
0 commit comments