summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2020-03-20 17:00:39 +0100
committerMichael Adam <obnox@samba.org>2020-03-20 17:43:33 +0100
commit57b86f4559f5c7293eddb484f783c67539e6f898 (patch)
tree5335443e2a04febe8a06a9e16bb4baf6f91bd6cf
parent087a64b1aeafe15a45fe7ed6a9a10b4b4bd31a9e (diff)
downloadsamba-integration-57b86f4559f5c7293eddb484f783c67539e6f898.tar.gz
samba-integration-57b86f4559f5c7293eddb484f783c67539e6f898.tar.xz
samba-integration-57b86f4559f5c7293eddb484f783c67539e6f898.zip
centos-ci: rebase against the PR target branch instead of master
Needs https://github.com/gluster/centosci/pull/83 for the ghprbTargetBranch variable to be set. Signed-off-by: Michael Adam <obnox@samba.org>
-rwxr-xr-xsamba-integration-centos-ci-tests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/samba-integration-centos-ci-tests.sh b/samba-integration-centos-ci-tests.sh
index 933b02b..6593bd7 100755
--- a/samba-integration-centos-ci-tests.sh
+++ b/samba-integration-centos-ci-tests.sh
@@ -55,9 +55,9 @@ then
git fetch origin "pull/${ghprbPullId}/head:pr_${ghprbPullId}"
git checkout "pr_${ghprbPullId}"
- git rebase master
+ git rebase "${ghprbTargetBranch}"
if [ $? -ne 0 ] ; then
- echo "Unable to automatically merge master. Please rebase your patch"
+ echo "Unable to automatically rebase to branch '${ghprbTargetBranch}'. Please rebase your PR!"
exit 1
fi
fi