File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 431
431
[ -L "'' ${GIT_WC}/${ cfg . configPath } " ] && unlink "'' ${GIT_WC}/${ cfg . configPath } "
432
432
433
433
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"
439
441
else
440
442
if ${ boolToString cfg . addGcRoot } ; then
441
443
nix-store --add-root "'' ${GIT_WC}/${ cfg . configPath } " --indirect --realise ${ cfg . configFile }
You can’t perform that action at this time.
0 commit comments