git commad
repo forall -c 'echo $REPO_PATH;ssh trd.git.htc.com -p29419 -lowen_wen gerrit create-project --submit-type CHERRY_PICK --name $REPO_PROJECT'
repo forall -c ' echo $REPO_PATH;git push -n ssh://owen_wen@trd.git.htc.com:29419/$REPO_PROJECT HEAD:refs/heads/amt/test'
gerrit@billtan-ThinkCentre-XXXX:~/mtk/mtk$ ~/bin/repo forall -c 'echo $REPO_PATH;git push ssh://scm@10.33.137.230:29418/$REPO_PROJECT HEAD:refs/heads/master'
abi/cpp
Counting objects: 40, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (39/39), done.
Writing objects: 100% (40/40), 11.51 KiB, done.
Total 40 (delta 21), reused 0 (delta 0)
remote: Resolving deltas: 100% (21/21)
remote: Processing changes: refs: 1, done
To ssh://scm@10.33.137.230:29418/local/platform/abi/cpp
! [remote rejected] HEAD -> master (prohibited by Gerrit)
error: failed to push some refs to 'ssh://scm@10.33.137.230:29418/local/platform/abi/cpp'
art
1.sudo ~/bin/repo forall -c 'echo $REPO_PATH; ssh gerritadmin gerrit create-project --parent Pre_MASD_Project --submit-type CHERRY_PICK --name $REPO_PROJECT'
2.sudo ~/bin/repo forall -c 'echo $REPO_PATH; sudo cp -fr /home/gerrit/mtk/$REPO_PROJECT/.git/* /home/gerrit/gerrit_site/git/$REPO_PROJECT.git'
posted on 2015-01-13 13:55 Joyfulmath 阅读(366) 评论(0) 编辑 收藏 举报