mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 13:48:21 +03: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}
|
gitolite setup -pk ${pubkeyFile}
|
||||||
fi
|
fi
|
||||||
if [ -n "${hooks}" ]; then
|
if [ -n "${hooks}" ]; then
|
||||||
cp ${hooks} .gitolite/hooks/common/
|
cp -f ${hooks} .gitolite/hooks/common/
|
||||||
chmod +x .gitolite/hooks/common/*
|
chmod +x .gitolite/hooks/common/*
|
||||||
fi
|
fi
|
||||||
gitolite setup # Upgrade if needed
|
gitolite setup # Upgrade if needed
|
||||||
|
Loading…
Reference in New Issue
Block a user