| | |
| | | LOGGER.error("failed to determine default branch for " + repository.name, e);
|
| | | }
|
| | |
|
| | | if (!StringUtils.isEmpty(getRepositoryModel().mergeTo)) {
|
| | | // repository settings specifies a default integration branch
|
| | | defaultBranch = Repository.shortenRefName(getRepositoryModel().mergeTo);
|
| | | }
|
| | |
|
| | | long ticketId = 0L;
|
| | | try {
|
| | | ticketId = Long.parseLong(branch);
|
| | |
| | | // identified the missing object earlier before we got control.
|
| | | LOGGER.error("failed to get commit count", e);
|
| | | } finally {
|
| | | walk.release();
|
| | | walk.close();
|
| | | }
|
| | |
|
| | | sendError("");
|
| | |
| | | LOGGER.error("failed to get commit count", e);
|
| | | return 0;
|
| | | } finally {
|
| | | walk.release();
|
| | | walk.close();
|
| | | }
|
| | | return count;
|
| | | }
|