< prev index next > bots/mlbridge/src/main/java/org/openjdk/skara/bots/mlbridge/PullRequestInstance.java
Print this page
this.projectPrefix = projectPrefix;
// Materialize the PR's target ref
try {
var repository = pr.repository();
- localRepo = Repository.materialize(localRepoPath, repository.url(), pr.targetRef());
+ localRepo = Repository.materialize(localRepoPath, repository.url(),
+ "+" + pr.targetRef() + ":mlbridge_prinstance_" + repository.name());
targetHash = localRepo.fetch(repository.url(), pr.targetRef());
headHash = localRepo.fetch(repository.url(), pr.headHash().hex());
baseHash = localRepo.mergeBase(targetHash, headHash);
} catch (IOException e) {
throw new UncheckedIOException(e);
< prev index next >