mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
using util-eng to install git hooks
This commit is contained in:
parent
af39ef9d23
commit
7192b9707b
1 changed files with 8 additions and 7 deletions
|
|
@ -85,14 +85,15 @@ function gerrit_add_reviewer {
|
||||||
}
|
}
|
||||||
|
|
||||||
function gerrit_setup () {
|
function gerrit_setup () {
|
||||||
cd .git/hooks;
|
if [ -d /web/tools/bin/install-hooks ]; then
|
||||||
scp gerrit_host:hooks/commit-msg . > /dev/null;
|
# install hooks
|
||||||
cd - > /dev/null;
|
/web/tools/bin/install-hooks;
|
||||||
|
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
echo "$green Gerrit hook installed. $stop";
|
echo "$green Gerrit hook installed. $stop";
|
||||||
else
|
else
|
||||||
echo "$red Couldn't install Gerrit hook. $stop";
|
echo "$red Couldn't install Gerrit hook. $stop";
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue