Commit 8075dae77f9e6e778ea3280bab7940f0cb7841bd

Authored by Perry Werneck
1 parent 05e56a0d
Exists in master and in 1 other branch develop

Updating gitsync.sh to use branches.

Showing 1 changed file with 11 additions and 3 deletions   Show diff stats
@@ -15,10 +15,18 @@ @@ -15,10 +15,18 @@
15 git push 15 git push
16 16
17 git fetch origin 17 git fetch origin
18 -git checkout master  
19 -git merge origin/master 18 +git merge
20 19
21 -for repo in $(git remote -v | grep -v origin | grep "(push)" | awk '{print $1}') 20 +REPOS=$(git remote -v | grep -v origin | grep "(push)" | awk '{print $1}')
  21 +
  22 +for repo in ${REPOS}
  23 +do
  24 + echo "Getting updates from ${repo} ..."
  25 + git fetch ${repo}
  26 + git merge
  27 +done
  28 +
  29 +for repo in ${REPOS}
22 do 30 do
23 echo "Updating ${repo} ..." 31 echo "Updating ${repo} ..."
24 git push ${repo} 32 git push ${repo}