mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
nixos/gitolite: copy hooks with force
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.
This commit is contained in:
parent
a9d31a250f
commit
7c481aa7c1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue