We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2db059 commit db8b6f8Copy full SHA for db8b6f8
modules/pre-commit.nix
@@ -439,7 +439,7 @@ in
439
if ! readlink "''${GIT_WC}/${cfg.configPath}" >/dev/null \
440
|| [[ $(readlink "''${GIT_WC}/${cfg.configPath}") != ${cfg.configFile} ]]; then
441
echo 1>&2 "git-hooks.nix: updating $PWD repo"
442
- [ -L ${cfg.configPath} ] && unlink ${cfg.configPath}
+ [ -L "''${GIT_WC}/${cfg.configPath}" ] && unlink "''${GIT_WC}/${cfg.configPath}"
443
444
if [[ -e "''${GIT_WC}/${cfg.configPath}" && ! ${boolToString cfg.overwriteConfig} ]]; then
445
echo 1>&2 "git-hooks.nix: WARNING: Refusing to install because of an existing config at ${cfg.configPath}"
0 commit comments