automatic git push

This commit is contained in:
Gaetan Semet 2013-11-18 09:58:43 +01:00
commit 01b6b434a0

View file

@ -73,16 +73,14 @@ function bb_merge_prod_staging()
function bb_push_with_care() function bb_push_with_care()
{ {
project=$1 branch=$(git branches | grep "remotes/m/" | cut -d'/' -f5 | cut -d' ' -f1)
shift project=$(git remote -v | grep umg | tail -n 1 | cut -d'/' -f6 | cut -d' ' -f1)
branch=$1
shift
if [[ -z $project || -z $branch ]]; then if [[ -z $project || -z $branch ]]; then
echo "Missing arg : <project> <branch>" echo "Unable to findout branches or project name :("
return return
fi fi
echo "Pushing branch $branch on project $project" echo "Pushing branch '$branch' on project '$project'"
echo "Press Enter to continue" echo "Press Enter to continue"
read read
git push ssh://android.intel.com/a/buildbot/$project HEAD:platform/buildbot/$branch git push ssh://android.intel.com/a/buildbot/$project HEAD:platform/buildbot/$branch