diff --git a/src/installer/__tests__/__snapshots__/getScript.ts.snap b/src/installer/__tests__/__snapshots__/getScript.ts.snap index 6ea7f9430..fa4fd831a 100644 --- a/src/installer/__tests__/__snapshots__/getScript.ts.snap +++ b/src/installer/__tests__/__snapshots__/getScript.ts.snap @@ -25,6 +25,7 @@ debug() { debug \\"husky v3.0.8 (created at )\\" debug \\"$hookName hook started\\" +debug \\"Current working directory is '\`pwd\`'\\" if [ \\"\${HUSKY_SKIP_HOOKS}\\" = \\"true\\" ] || [ \\"\${HUSKY_SKIP_HOOKS}\\" = \\"1\\" ]; then debug \\"HUSKY_SKIP_HOOKS is set to \${HUSKY_SKIP_HOOKS}, skipping hook\\" @@ -82,6 +83,7 @@ debug() { debug \\"husky v3.0.8 (created at )\\" debug \\"$hookName hook started\\" +debug \\"Current working directory is '\`pwd\`'\\" if [ \\"\${HUSKY_SKIP_HOOKS}\\" = \\"true\\" ] || [ \\"\${HUSKY_SKIP_HOOKS}\\" = \\"1\\" ]; then debug \\"HUSKY_SKIP_HOOKS is set to \${HUSKY_SKIP_HOOKS}, skipping hook\\" diff --git a/src/installer/getScript.ts b/src/installer/getScript.ts index 7c9eb4113..23c295a9e 100644 --- a/src/installer/getScript.ts +++ b/src/installer/getScript.ts @@ -54,6 +54,7 @@ debug() { debug "husky v${version} (created at ${createdAt})" debug "$hookName hook started" +debug "Current working directory is '\`pwd\`'" if [ "$\{HUSKY_SKIP_HOOKS}" = "true" ] || [ "$\{HUSKY_SKIP_HOOKS}" = "1" ]; then debug "HUSKY_SKIP_HOOKS is set to $\{HUSKY_SKIP_HOOKS}, skipping hook" diff --git a/src/runner/bin.ts b/src/runner/bin.ts index 9a70b742d..456abbfd3 100644 --- a/src/runner/bin.ts +++ b/src/runner/bin.ts @@ -1,10 +1,6 @@ import index from './' -import debug from '../debug' import { checkGitDirEnv } from '../checkGitDirEnv' -// Debug -debug(`Current working directory is '${process.cwd()}'`) - // Check GIT_DIR environment variable checkGitDirEnv()