2013-08-07 4 views
22

임시 보관함을 gerrit로 푸시 할 수 없습니다. 초안을 gerrit로 푸시하려고하면 다음 오류가 발생합니다.드래프트를 Gerrit로 푸시하는 방법은 무엇입니까?

[3:37pm] [myrepo] -> git push origin HEAD:refs/drafts/remote Counting objects: 167, done.

Delta compression using up to 8 threads.

Compressing objects: 100% (80/80), done.

Writing objects: 100% (124/124), 58.19 KiB, done.

Total 124 (delta 75), reused 47 (delta 32)

remote: Resolving deltas: 34% (26/75)

To ssh://myrepo ! [remote rejected] HEAD -> refs/drafts/remote(prohibited by Gerrit)

error: failed to push some refs to 'ssh://myrepo'

이 문제에 대해 도움을 줄 수 있습니까?

+0

Thomas Mtthews : 간단히 말하자면 Gerrit는 코드 변경을 푸시하여 다른 팀 구성원이 변경 사항을 검토하고 오류가 있으면 승인 또는 거부하십시오. – Bobby

답변

38

사용이 명령

git push --receive-pack="git receive-pack" origin {commit SHA-1 or HEAD}:refs/drafts/{branch} 

일반적인 규칙은 리트으로 밀어 분기 = 마스터 :

git push origin <a_local_branch_name or specific_commit or HEAD>:refs/for/master 

일반적인 규칙 DRAFT, 분기 = 마스터 리트으로 밀어 :

git push origin <a_local_branch_name or specific_commit or HEAD>:refs/drafts/master 
+0

하지만 위의 명령을 실행하면이 오류가 발생합니다. esekilxxen1503는 [오전 10시 47분은] -> 자식 --receive 팩 밀어 = "자식은 팩 수신"원산지 HEAD : 심판/임시/분기 총 0 (델타 0), 0 (델타 0) 재사용 ssh : //[email protected] : 29418/지점 ! [원격 거부 됨] HEAD -> refs/drafts/com_33_rel (Gerrit 금지) 오류 : 'ssh : //[email protected] : 29418/ – Bobby

+0

명령을 내리면 일부 refs를 푸시하지 못했습니다. 실행했습니다 –

+0

git push --receive-pack = "git receive-pack"origin HEAD : refs/drafts/branch – Bobby

관련 문제