From e7405a7d809f61f0953f47a95d96902563e4b7ec Mon Sep 17 00:00:00 2001 From: Christoffer Date: Mon, 17 Dec 2018 09:01:31 +0000 Subject: [PATCH] Update update.sh - Avoid pushing to branch named upstream. - Push only from local master to remote master branch. Even if other branch is currently checked out. --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index e977e95..b156c62 100755 --- a/update.sh +++ b/update.sh @@ -7,4 +7,4 @@ git add roa/* git commit roa/* -m "Updated ROA files - $ISO_DATE" # Push repository to every remote configured -for REMOTE in $(git remote | paste -sd " " -) ; do git push $REMOTE master ; done +for REMOTE in $(git remote | egrep -v upstream | paste -sd " " -) ; do git push $REMOTE master:master ; done