| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
When determining if ours or theirs changed, we check the oids but not their respective file modes. This can lead to merges introducing incorrect file mode changes (eg., in a revert). A simple linear example might be: commit A - introduces file `foo` with chmod 0755 commit B - updates some unrelated file commit C - renames `foo` to `bar` and chmod 0644 If B is reverted, `bar` will unexpectedly acquire mode 0755.
|
Thanks for the fix! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When determining if ours or theirs changed, we check the oids but not
their respective file modes. This can lead to merges introducing incorrect
file mode changes (eg., in a revert). A simple linear example might be:
commit A - introduces file foo with chmod 0755
commit B - updates some unrelated file
commit C - renames foo to bar and chmod 0644
If B is reverted, bar will unexpectedly acquire mode 0755. This is
reproduced in the revert/rename.c test below.