elixir-pre-commit
elixir-pre-commit copied to clipboard
Pre-existing pre-commit hooks are overwritten
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:
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.