We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1293270 commit 5af65ebCopy full SHA for 5af65eb
modules/pre-commit.nix
@@ -428,7 +428,7 @@ in
428
if ! readlink "''${GIT_WC}/${cfg.configPath}" >/dev/null \
429
|| [[ $(readlink "''${GIT_WC}/${cfg.configPath}") != ${cfg.configFile} ]]; then
430
echo 1>&2 "git-hooks.nix: updating $PWD repo"
431
- [ -L ${cfg.configPath} ] && unlink ${cfg.configPath}
+ [ -L "''${GIT_WC}/${cfg.configPath}" ] && unlink "''${GIT_WC}/${cfg.configPath}"
432
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}"
0 commit comments