File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 431431 [ -L "'' ${GIT_WC}/${ cfg . configPath } " ] && unlink "'' ${GIT_WC}/${ cfg . configPath } "
432432
433433 if [ -e "'' ${GIT_WC}/${ cfg . configPath } " ]; then
434- echo 1>&2 "git-hooks.nix: WARNING: Refusing to install because of pre-existing ${ cfg . configPath } "
435- echo 1>&2 " 1. Translate ${ cfg . configPath } contents to the new syntax in your Nix file"
436- echo 1>&2 " see https://github.com/cachix/git-hooks.nix#getting-started"
437- echo 1>&2 " 2. remove ${ cfg . configPath } "
438- echo 1>&2 " 3. add ${ cfg . configPath } to .gitignore"
434+ echo 1>&2 "git-hooks.nix: WARNING: Refusing to install because of an existing config at ${ cfg . configPath } "
435+ echo 1>&2 ""
436+ echo 1>&2 " To migrate the existing config to a Nix configuration:"
437+ echo 1>&2 " 1. Translate the contents of ${ cfg . configPath } into a Nix configuration."
438+ echo 1>&2 " See https://github.com/cachix/git-hooks.nix#getting-started"
439+ echo 1>&2 " 2. Remove ${ cfg . configPath } "
440+ echo 1>&2 " 3. Add ${ cfg . configPath } to .gitignore"
439441 else
440442 if ${ boolToString cfg . addGcRoot } ; then
441443 nix-store --add-root "'' ${GIT_WC}/${ cfg . configPath } " --indirect --realise ${ cfg . configFile }
You can’t perform that action at this time.
0 commit comments