We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f21e0ab commit 1ad7d99Copy full SHA for 1ad7d99
.envrc
@@ -71,7 +71,16 @@ fi
71
if [ -f .pre-commit-config.yaml ] &&
72
type -P pre-commit &>/dev/null &&
73
git rev-parse --is-inside-work-tree &>/dev/null; then
74
- if ! [ -f "$(git rev-parse --show-toplevel)/.git/hooks/pre-commit" ]; then
+ 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
80
+ echo "Removing"
81
+ rm -f "$hook"
82
+ fi
83
+ if ! [ -f "$hook" ]; then
84
echo
85
echo "Pre-commit hook is not installed in local Git repo checkout - installing now..."
86
0 commit comments