From 09870b9ef4539bc3cd7628ebf9f071291b7ef99d Mon Sep 17 00:00:00 2001 From: Szymon Bochniak Date: Tue, 30 Jul 2013 17:04:35 +0200 Subject: [PATCH] Reset local integration branch before merging with the branch to be built --- .gitignore | 1 + maven_pre_build_debian_wrapper.sh | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3220327..2b76de4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ */*\.pyc *\.pyc Packages* +.idea diff --git a/maven_pre_build_debian_wrapper.sh b/maven_pre_build_debian_wrapper.sh index 93445e5..0978b01 100755 --- a/maven_pre_build_debian_wrapper.sh +++ b/maven_pre_build_debian_wrapper.sh @@ -36,9 +36,10 @@ if [[ ${GIT_BRANCH_NAME:0:8} = "feature/" ]] || [[ ${GIT_BRANCH_NAME:0:7} = "bug # echo "Switching to integration branch..." git checkout integration - git pull origin integration - echo "Trying to fast-forward merge $GIT_BRANCH_NAME..." - git fetch origin -fp + echo "Fetching from remote..." + git fetch origin --prune + echo "Resetting integration branch to remote state..." + git reset --hard refs/remotes/origin/integration figlet "integration merge" git merge --no-ff origin/$GIT_BRANCH_NAME fi -- 2.39.5