Skip to content

Commit

Permalink
updated .envrc
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Feb 25, 2025
1 parent 2a6a775 commit ee2c2f6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,16 @@ fi
if [ -f .pre-commit-config.yaml ] &&
type -P pre-commit &>/dev/null &&
git rev-parse --is-inside-work-tree &>/dev/null; then
if ! [ -f "$(git rev-parse --show-toplevel)/.git/hooks/pre-commit" ]; then
hook="$(git rev-parse --show-toplevel)/.git/hooks/pre-commit"
if [ -L "$hook" ]; then
echo "Detected symlink hook: "
echo
ls -l "$hook"
echo
echo "Removing"
rm -f "$hook"
fi
if ! [ -f "$hook" ]; then
echo
echo "Pre-commit hook is not installed in local Git repo checkout - installing now..."
echo
Expand Down

0 comments on commit ee2c2f6

Please sign in to comment.