blob: 5597ea1677717dc286f818f4d1d80911087f7f76 [file] [log] [blame]
ESI15f127e632015-11-24 12:24:16 +05301#!/bin/sh
2# Automatically merge the last commit through the following branches:
3# Integration-Releases -} master
4
ESI157cbdd6c2015-11-27 11:58:13 +05305#git checkout -b issue-001 master
6
ESI15f127e632015-11-24 12:24:16 +05307CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
8LAST_COMMIT=$(git rev-list -1 HEAD)
9
10echo Automatically merging commit $LAST_COMMIT from $CURRENT_BRANCH rippling to master
11
12case $CURRENT_BRANCH in
ESI157cbdd6c2015-11-27 11:58:13 +053013issue-001)
14
ESI15f127e632015-11-24 12:24:16 +053015 git checkout master
16 git merge $CURRENT_BRANCH
ESI157cbdd6c2015-11-27 11:58:13 +053017 git push
18 git checkout Integration-Releases
19 git merge $CURRENT_BRANCH
20 git push
21 #git branch -d issue-#001
ESI15f127e632015-11-24 12:24:16 +053022 ;;
23esac