Is there a way to automatically set the execution bit upon committing a new bash script from a Windows machine?
The manual way to do it is git update-index --chmod=+x myscript.sh - but this is typically only done postmortem after the build process fails on the linux box due to missing execute permission on the script.
.shfiles not marked executable, but then that creates still a different set of problems.commit hook, I didn't meanrejects a commit with .sh files not marked executable. I wonder if commit hook can enforce the setting of executable bits.