Skip to content

Commit

Permalink
Force creation of symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Apr 11, 2023
1 parent 7658276 commit d2d0bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ in
echo 1>&2 " 2. remove .pre-commit-config.yaml"
echo 1>&2 " 3. add .pre-commit-config.yaml to .gitignore"
else
ln -s ${configFile} "''${GIT_WC}/.pre-commit-config.yaml"
ln -fs ${configFile} "''${GIT_WC}/.pre-commit-config.yaml"
# Remove any previously installed hooks (since pre-commit itself has no convergent design)
hooks="pre-commit pre-merge-commit pre-push prepare-commit-msg commit-msg post-checkout post-commit"
for hook in $hooks; do
Expand Down

0 comments on commit d2d0bac

Please sign in to comment.