IVI repo changes.
[platform/upstream/image-configurations.git] / scripts / merge-request.sh
1 #!/bin/bash
2
3 if [ -z "$1" ]; then
4         echo "Merge request number needed"
5         exit 1
6 fi
7
8 # Check out a new branch for integration
9 git checkout -b merge-requests/$1
10
11 # Fetch the merge request into this branch
12 git pull git://gitorious.org:meego-os-base/image-configurations.git  refs/merge-requests/$1
13
14 # Show the commits, assess they are okay
15 git log --pretty=oneline --abbrev-commit master..merge-requests/$1
16
17 # To apply the changes to your branch:
18 git checkout master
19 git merge merge-requests/$1
20 git push origin master