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 () {
|
||||
cd .git/hooks;
|
||||
scp gerrit_host:hooks/commit-msg . > /dev/null;
|
||||
cd - > /dev/null;
|
||||
if [ -d /web/tools/bin/install-hooks ]; then
|
||||
# install hooks
|
||||
/web/tools/bin/install-hooks;
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo "$green Gerrit hook installed. $stop";
|
||||
else
|
||||
echo "$red Couldn't install Gerrit hook. $stop";
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo "$green Gerrit hook installed. $stop";
|
||||
else
|
||||
echo "$red Couldn't install Gerrit hook. $stop";
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue