in src/main/java/com/google/gerrit/server/util/RefUpdater.java [137:154]
protected void update() throws IOException, NoSuchProjectException {
try {
repo = repoManager.openRepository(project);
try {
initUpdate();
handleResult(runUpdate());
} catch (IOException err) {
log.atSevere().withCause(err).log(
"RefUpdate failed: branch not updated: %s", branch.branch());
throw err;
} finally {
repo.close();
repo = null;
}
} catch (RepositoryNotFoundException e) {
throw new NoSuchProjectException(project);
}
}