Skip to content

Commit

Permalink
Fix: do not install server hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Feb 11, 2020
1 parent b05fe3b commit 7e79d16
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sh/husky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fi

# Set HUSKY_GIT_STDIN from stdin
case $hookName in
"pre-push"|"pre-receive"|"post-receive"|"post-rewrite")
"pre-push"|"post-rewrite")
export HUSKY_GIT_STDIN="$(cat)";;
esac

Expand Down
2 changes: 1 addition & 1 deletion src/installer/__tests__/__snapshots__/scripts.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fi
# Set HUSKY_GIT_STDIN from stdin
case $hookName in
\\"pre-push\\"|\\"pre-receive\\"|\\"post-receive\\"|\\"post-rewrite\\")
\\"pre-push\\"|\\"post-rewrite\\")
export HUSKY_GIT_STDIN=\\"$(cat)\\";;
esac
Expand Down
3 changes: 0 additions & 3 deletions src/installer/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ const hookList = [
'post-checkout',
'post-merge',
'pre-push',
'pre-receive',
'update',
'post-receive',
'post-update',
'push-to-checkout',
'pre-auto-gc',
Expand Down

0 comments on commit 7e79d16

Please sign in to comment.