Skip to content

Fix git hook error after dependency installation - #24

Open
RiccardoBiosas wants to merge 1 commit into
atlassian-labs:mainfrom
RiccardoBiosas:rbiosas/fix-git-hook
Open

Fix git hook error after dependency installation #24
RiccardoBiosas wants to merge 1 commit into
atlassian-labs:mainfrom
RiccardoBiosas:rbiosas/fix-git-hook

Conversation

@RiccardoBiosas

@RiccardoBiosas RiccardoBiosas commented May 22, 2024

Copy link
Copy Markdown

Husky is currently set to run in a nested directory that is not at the same level as the .git directory. it's a known error (see here and here) and it was causing the installation process to terminate with Exit status 1 as in the below logs:

> husky install

.git can't be found (see https://git.io/Jc3F9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! statuspage-example-app@1.0.0 prepare: `husky install`
npm ERR! Exit status 1

This PR fixes the issue by running the prepare command from the same level as the .git directory

@RiccardoBiosas
RiccardoBiosas requested a review from a team as a code owner May 22, 2024 03:21
@atlassian-cla-bot

atlassian-cla-bot Bot commented May 22, 2024

Copy link
Copy Markdown

Hooray! All contributors have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants