;tools: push: select branch to push more robustly

This commit is contained in:
Simon Michael 2023-01-21 09:54:49 -10:00
parent 1455a4d2fc
commit 7a5676dde4

View File

@ -37,11 +37,11 @@ ciwait() {
echo "latest local commits are:"
gitlog
echo "force-pushing to github/$REMOTECIBRANCH"
echo "force-pushing $LOCALBRANCH to github/$REMOTECIBRANCH"
git push -f github $LOCALBRANCH:$REMOTECIBRANCH
ciwait
echo "pushing to $REMOTEMAINBRANCH"
git push github $REMOTEMAINBRANCH
echo "pushing CI-passing $LOCALBRANCH to $REMOTEMAINBRANCH"
git push github $LOCALBRANCH:$REMOTEMAINBRANCH
echo "latest commits on github/$REMOTEMAINBRANCH are:"
gitlog github/$REMOTEMAINBRANCH
echo "done"