Fix reject message if bypassing code review is not allowed
If a user is not allowed to bypass code review, but tries to push a commit directly, Gerrit rejects this push with the error message "can not update the reference as a fast forward". This message is confusing to the user since the push only fails due to missing access rights. Go back to the old message that says "prohibited by Gerrit". Change-Id: I702520619a58d87f9c3f8d75f2bfa608de9ff14d Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -856,7 +856,7 @@ public class ReceiveCommits {
|
||||
} else {
|
||||
errors.put(Error.UPDATE, ctl.getRefName());
|
||||
}
|
||||
reject(cmd, "can not update the reference as a fast forward");
|
||||
reject(cmd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user