Skip to content

Commit 1ad7d99

Browse files
committed
updated .envrc
1 parent f21e0ab commit 1ad7d99

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.envrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,16 @@ fi
7171
if [ -f .pre-commit-config.yaml ] &&
7272
type -P pre-commit &>/dev/null &&
7373
git rev-parse --is-inside-work-tree &>/dev/null; then
74-
if ! [ -f "$(git rev-parse --show-toplevel)/.git/hooks/pre-commit" ]; then
74+
hook="$(git rev-parse --show-toplevel)/.git/hooks/pre-commit"
75+
if [ -L "$hook" ]; then
76+
echo "Detected symlink hook: "
77+
echo
78+
ls -l "$hook"
79+
echo
80+
echo "Removing"
81+
rm -f "$hook"
82+
fi
83+
if ! [ -f "$hook" ]; then
7584
echo
7685
echo "Pre-commit hook is not installed in local Git repo checkout - installing now..."
7786
echo

0 commit comments

Comments
 (0)