Skip to content

Commit

Permalink
Modified .githooks/pre-commit to set up +x permssions on .sh and .py …
Browse files Browse the repository at this point in the history
…files.
  • Loading branch information
ggarra13 committed Dec 21, 2024
1 parent d8c6c56 commit 454c4cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ do
dos2unix $FILE
echo "Changing $FILE permissions to 0755"
chmod 0755 $FILE
# Explicitly set executable bit in Git
git update-index --chmod=+x $FILE
git add $FILE
fi
else
Expand Down

0 comments on commit 454c4cd

Please sign in to comment.