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