2012-08-30 3 views

답변

6

function parseDelete()에 설명 된 것처럼 Gerrit 응답처럼 보입니다.

private void parseDelete(final ReceiveCommand cmd) { 
    RefControl ctl = projectControl.controlForRef(cmd.getRefName()); 
    if (ctl.canDelete()) { 
     // Let the core receive process handle it 
    } else { 
     reject(cmd, "can not delete references"); 
    } 
    } 

이것은 push policy controlled by Gerrit에 대한 링크입니다.

This category controls how users are allowed to upload new commits to projects in Gerrit.
Deletion of existing branches is rejected. This is the safest mode as commits cannot be discarded.

따라서이 Gerrit 범주에서 "강제 옵션"을 활성화하지 않으면 해당 서버에서 분기를 삭제할 수 없습니다.

0

어떤 종류의 서버입니까? 나는 그것이 GitHub가 아니라, 지울 삭제를 금지하도록 특별히 구성된 맞춤 서버라고 생각한다. 이 문제에 관해서는 시스템 관리자와상의하십시오.

관련 문제