Executable permissions are reset when chunks of an executable file is committed
Tested in gitg
3.26.0.
To reproduce:
- Commit an executable file to your repo
- Do some modifications
- Using
gitg
select a part of the file to stage by clicking a few lines and press "Stage selection" - Commit using
gitg
- Run a command such as
git show
to show the changes, it would show:
old mode 100755
new mode 100644
The executable bit should not have been removed. This is not the case if the full file is staged.
Edited by Ghost User