continue;\r
}\r
\r
+ LOGGER.info(MessageFormat.format("Verifying {0} push ref \"{1}\" received from {2}",\r
+ repository.name, cmd.getRefName(), user.username));\r
+\r
// responsible verification\r
String responsible = PatchsetCommand.getSingleOption(cmd, PatchsetCommand.RESPONSIBLE);\r
if (!StringUtils.isEmpty(responsible)) {\r
// watcher verification\r
List<String> watchers = PatchsetCommand.getOptions(cmd, PatchsetCommand.WATCH);\r
if (!ArrayUtils.isEmpty(watchers)) {\r
+ boolean verified = true;\r
for (String watcher : watchers) {\r
UserModel user = gitblit.getUserModel(watcher);\r
if (user == null) {\r
// watcher does not exist\r
sendRejection(cmd, "Sorry, \"{0}\" is not a valid username for the watch list!", watcher);\r
- continue;\r
+ verified = false;\r
+ break;\r
}\r
}\r
+ if (!verified) {\r
+ continue;\r
+ }\r
}\r
\r
patchsetRefCmd = cmd;\r
* @return the patchset command\r
*/\r
private PatchsetCommand preparePatchset(ReceiveCommand cmd) {\r
- LOGGER.info(MessageFormat.format("Preparing {0} patchset command for \"{1}\" received from {2}",\r
- repository.name, cmd.getRefName(), user.username));\r
String branch = getIntegrationBranch(cmd.getRefName());\r
long number = getTicketId(cmd.getRefName());\r
\r