Skip to content

Commit

Permalink
Merge pull request #9 from HeisenbergPeople/issue-1
Browse files Browse the repository at this point in the history
Add tools/merge script
  • Loading branch information
drBradley committed Mar 22, 2015
2 parents 018f863 + 50e2691 commit 8f8a085
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env sh

merged_branch=`git symbolic-ref --short -q HEAD`

git rebase master
rebase_status=$?

if [ $rebase_status != 0 ]; then
printf "Error [%d] during test rebase" $rebase_status
git rebase --abort
exit $rebase_status
fi

git checkout master
git merge --no-ff $merged_branch

0 comments on commit 8f8a085

Please sign in to comment.