Merge "Write a Cookbook for Prolog submit rules" into stable-2.5
diff --git a/Documentation/error-prohibited-by-gerrit.txt b/Documentation/error-prohibited-by-gerrit.txt
index df46566..56e5851 100644
--- a/Documentation/error-prohibited-by-gerrit.txt
+++ b/Documentation/error-prohibited-by-gerrit.txt
@@ -19,6 +19,9 @@
access right on 'refs/tags/*'
4. if you push a lightweight tag without the access right link:access-control.html#category_create['Create
Reference'] for the reference name 'refs/tags/*'
+5. if you push a tag with somebody else as tagger and you don't have the
+ link:access-control.html#category_forge_committer['Forge Committer']
+ access right for the reference name 'refs/tags/*'
For new users it often happens that they accidentally try to bypass
code review. The push then fails with the error message 'prohibited
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/ReceiveCommits.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/ReceiveCommits.java
index ccf7c2d..6a6f908 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/git/ReceiveCommits.java
+++ b/gerrit-server/src/main/java/com/google/gerrit/server/git/ReceiveCommits.java
@@ -837,7 +837,7 @@
batch.addCommand(cmd);
} else {
errors.put(Error.CREATE, ctl.getRefName());
- reject(cmd, "can not create new references");
+ reject(cmd);
}
}