feat: setup gerrit commit-msg hook with nix develop
Closes #273 Change-Id: Id883d2cda06adbcae53b8c360ad015330f0af81b
This commit is contained in:
parent
964ac8b0e8
commit
268a411ed1
1 changed files with 7 additions and 0 deletions
|
@ -503,6 +503,13 @@
|
|||
if ! [[ -f .nocontribmsg ]]; then
|
||||
cat ${contribNotice}
|
||||
fi
|
||||
|
||||
# Install the Gerrit commit-msg hook.
|
||||
if [[ ! -f .git/hooks/commit-msg ]]; then
|
||||
mkdir -p .git/hooks
|
||||
curl -s -Lo .git/hooks/commit-msg https://gerrit.lix.systems/tools/hooks/commit-msg
|
||||
chmod u+x .git/hooks/commit-msg
|
||||
fi
|
||||
'';
|
||||
}
|
||||
// lib.optionalAttrs (stdenv.buildPlatform.isLinux && pkgs.glibcLocales != null) {
|
||||
|
|
Loading…
Reference in a new issue