elixir-pre-commit icon indicating copy to clipboard operation
elixir-pre-commit copied to clipboard

Pre-existing pre-commit hooks are overwritten

Open finnhodgkin opened this issue 8 years ago • 1 comments

I'm not sure how we can work around our script overwriting existing pre-commit hooks, but I thought it worth opening this issue for ideas and discussion :blush:

finnhodgkin avatar Oct 12 '17 10:10 finnhodgkin

How about doing this: check if there is already a precommit hook file present. If no, then proceed as it is being done now. If yes, then create a new file with the mix pre_commit command in it, append a command in the original precommit hook file calling our new file.

This way we won't have to overwrite the old file.

secondspass avatar Jul 21 '18 20:07 secondspass