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.
This commit is contained in:
parent
ac1d498d98
commit
e7405a7d80
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue