mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
automatic git push
This commit is contained in:
parent
778b60cf38
commit
01b6b434a0
1 changed files with 4 additions and 6 deletions
|
|
@ -73,16 +73,14 @@ function bb_merge_prod_staging()
|
|||
|
||||
function bb_push_with_care()
|
||||
{
|
||||
project=$1
|
||||
shift
|
||||
branch=$1
|
||||
shift
|
||||
branch=$(git branches | grep "remotes/m/" | cut -d'/' -f5 | cut -d' ' -f1)
|
||||
project=$(git remote -v | grep umg | tail -n 1 | cut -d'/' -f6 | cut -d' ' -f1)
|
||||
|
||||
if [[ -z $project || -z $branch ]]; then
|
||||
echo "Missing arg : <project> <branch>"
|
||||
echo "Unable to findout branches or project name :("
|
||||
return
|
||||
fi
|
||||
echo "Pushing branch $branch on project $project"
|
||||
echo "Pushing branch '$branch' on project '$project'"
|
||||
echo "Press Enter to continue"
|
||||
read
|
||||
git push ssh://android.intel.com/a/buildbot/$project HEAD:platform/buildbot/$branch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue