diff --git a/.githooks/pre-commit b/.githooks/pre-commit index faf59984..35c483b1 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -20,9 +20,9 @@ do dos2unix $FILE echo "Changing $FILE permissions to 0755" chmod 0755 $FILE + git add $FILE # Explicitly set executable bit in Git git update-index --chmod=+x $FILE - git add $FILE fi else if [[ -d $FILE ]]; then