-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't overwrite hooks without --force
Currently, `bark install` silently overwrites any `reference-transaction` hook that may be present. This is a potentially very destructive action, so we should take proper care before doing so. I don't think there's a good way to automatically resolve the conflict in case the file already exists, so this implementation simply lists the conflicting files and leaves it to the user to resolve the conflict manually. (For example, we could move both hook files into `hooks/reference-transaction.d/` and make `hooks/reference-transaction` a script that calls all scripts in `reference-transaction.d/`, but it's not obvious that things like order of execution wouldn't matter.)
- Loading branch information
Showing
2 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters