2018-02-22 15:07:17 -05:00
|
|
|
#!/usr/bin/env bash
|
2017-07-26 15:37:14 -04:00
|
|
|
|
|
|
|
set -u -e -o pipefail
|
|
|
|
|
|
|
|
PATCH_BRANCH=`git branch --list '*.x' | cut -d ' ' -f2- | sort -r | head -n1`
|
|
|
|
# Trim whitespace
|
|
|
|
PATCH_BRANCH=`echo $PATCH_BRANCH`
|
|
|
|
|
|
|
|
PUSH_BRANCHES="git push git@github.com:angular/angular.git master:master $PATCH_BRANCH:$PATCH_BRANCH"
|
|
|
|
|
|
|
|
echo $PUSH_BRANCHES
|
|
|
|
$PUSH_BRANCHES
|