Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix: Update Gradle publish job
[releng/global-jjb.git]
/
shell
/
gerrit-push-patch.sh
diff --git
a/shell/gerrit-push-patch.sh
b/shell/gerrit-push-patch.sh
index
a1d67e6
..
09453f4
100644
(file)
--- a/
shell/gerrit-push-patch.sh
+++ b/
shell/gerrit-push-patch.sh
@@
-75,4
+75,7
@@
git remote add gerrit "ssh://$GERRIT_USER@$GERRIT_HOST:29418/$PROJECT.git"
# If the reviewers email is unset/empty then use a default
reviewers_email=${REVIEWERS_EMAIL:-"$GERRIT_USER@$GERRIT_HOST"}
# If the reviewers email is unset/empty then use a default
reviewers_email=${REVIEWERS_EMAIL:-"$GERRIT_USER@$GERRIT_HOST"}
+# Workaround for git-review failing to copy the commit-msg hook to submodules
+git config core.hooksPath "$(git rev-parse --show-toplevel)/.git/hooks"
+
git review --yes -t "$GERRIT_TOPIC" --reviewers "$reviewers_email"
git review --yes -t "$GERRIT_TOPIC" --reviewers "$reviewers_email"