Skip to content

Commit

Permalink
nixos/gitolite: copy hooks with force
Browse files Browse the repository at this point in the history
This makes the commonHook option work also for (read-only) Nix store
paths. Currently it fails on the second activation, because the
destination is read-only.
  • Loading branch information
bjornfor committed Dec 21, 2017
1 parent a9d31a2 commit 7c481aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/gitolite.nix
Expand Up @@ -207,7 +207,7 @@ in
gitolite setup -pk ${pubkeyFile}
fi
if [ -n "${hooks}" ]; then
cp ${hooks} .gitolite/hooks/common/
cp -f ${hooks} .gitolite/hooks/common/
chmod +x .gitolite/hooks/common/*
fi
gitolite setup # Upgrade if needed
Expand Down

0 comments on commit 7c481aa

Please sign in to comment.