-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
Running yarn install --force after installing pre-commit causes the pre-commit.old backup to get overwritten by the pre-commit file from this repo
Steps to Reproduce
- In a new repo, create a pre-commit file with some dummy content
#!/bin/bash echo "Hello World" && exit 0
- Install pre-commit
yarn add pre-commit - Notice the
pre-commitfile is backed up topre-commit.old - Run install with the
forceflagyarn install --force
Actual Result
- The
pre-commit.oldbackup contents are overwritten with the pre-commit content from this repo
Expected Result
One or both of these options would work:
- additional backup files would be created if
pre-commit.oldalready exists (e.g.pre-commit.old-2) - a backup file is not created if the contents of
pre-commitmatches the pre-commit content from this repo
Metadata
Metadata
Assignees
Labels
No labels