]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
also pull in changes from origin
authorHolger Levsen <holger@layer-acht.org>
Fri, 26 Jul 2013 14:51:47 +0000 (16:51 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 26 Jul 2013 14:51:47 +0000 (16:51 +0200)
maven_pre_build_debian_wrapper.sh

index 7eb6426a78965b9142976caaedc0c1be6c661c64..436ffc54f94ad57695b14395560067947ca7d763 100755 (executable)
@@ -26,7 +26,9 @@ if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] || [ ${GIT_BRANCH_NAME:0:7} = "bugfix
                #
                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
                git merge --no-ff origin/$GIT_BRANCH_NAME
        fi
 elif [ "$GIT_BRANCH_NAME" = "master" ] || [ "${GIT_BRANCH_NAME:0:7}" = "hotfix/" ] ; then