udpate github commit to git commit

pull/133/head
winlin 10 years ago
parent 55461e866f
commit 93ee15a552

@ -35,35 +35,32 @@ function remote_check()
remote_check origin git@github.com:winlinvip/simple-rtmp-server.git remote_check origin git@github.com:winlinvip/simple-rtmp-server.git
remote_check srs.csdn git@code.csdn.net:winlinvip/srs-csdn.git remote_check srs.csdn git@code.csdn.net:winlinvip/srs-csdn.git
remote_check srs.oschina git@git.oschina.net:winlinvip/srs.oschina.git remote_check srs.oschina git@git.oschina.net:winlinvip/srs.oschina.git
ok_msg "remote check ok"
function sync_push() function sync_push()
{ {
repository=$1
branch=$2
for ((;;)); do for ((;;)); do
git push $repository $branch git push $*
ret=$?; if [[ 0 -ne $ret ]]; then ret=$?; if [[ 0 -ne $ret ]]; then
failed_msg "提交$repository/$branch分支失败,自动重试"; failed_msg "Retry for failed: $*"
continue continue
else else
ok_msg "提交$repository/$branch分支成功" ok_msg "Success: $*"
fi fi
break break
done done
ok_msg "$repository/$branch同步git成功"
} }
sync_push origin master sync_push --all origin master
sync_push origin 1.0release sync_push --all origin 1.0release
sync_push srs.csdn master sync_push --all srs.csdn master
sync_push srs.csdn 1.0release sync_push --all srs.csdn 1.0release
sync_push srs.oschina master sync_push --all srs.oschina master
sync_push srs.oschina 1.0release sync_push --all srs.oschina 1.0release
ok_msg "sync push ok" ok_msg "push refs ok"
sync_push srs.csdn --tags sync_push --tags srs.csdn
sync_push srs.oschina --tags sync_push --tags srs.oschina
ok_msg "sync tags ok" ok_msg "push tags ok"
exit 0 exit 0
Loading…
Cancel
Save