From 2018ed9fec05c5b36b1e9d13041abbb29cbabdb4 Mon Sep 17 00:00:00 2001 From: typicode Date: Wed, 15 Jan 2020 15:54:28 +0100 Subject: [PATCH] fix pre-push --- src/installer/__tests__/__snapshots__/getScript.ts.snap | 2 +- src/installer/getScript.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installer/__tests__/__snapshots__/getScript.ts.snap b/src/installer/__tests__/__snapshots__/getScript.ts.snap index 8b941670b..49a0b59f5 100644 --- a/src/installer/__tests__/__snapshots__/getScript.ts.snap +++ b/src/installer/__tests__/__snapshots__/getScript.ts.snap @@ -70,7 +70,7 @@ cd \\".\\" case $hookName in \\"pre-push\\"|\\"pre-receive\\"|\\"post-receive\\"|\\"post-rewrite\\") - export HUSKY_GIT_STDIN=\`cat\`;; + export HUSKY_GIT_STDIN=\\"\`cat\`\\";; esac if command_exists winpty && test -t 1; then diff --git a/src/installer/getScript.ts b/src/installer/getScript.ts index f591dfc5a..daf608b48 100644 --- a/src/installer/getScript.ts +++ b/src/installer/getScript.ts @@ -96,7 +96,7 @@ cd "${relativeUserPkgDir}" case $hookName in "pre-push"|"pre-receive"|"post-receive"|"post-rewrite") - export HUSKY_GIT_STDIN=\`cat\`;; + export HUSKY_GIT_STDIN="\`cat\`";; esac if command_exists winpty && test -t 1; then