< prev index next >

bots/mlbridge/src/main/java/org/openjdk/skara/bots/mlbridge/PullRequestInstance.java

Print this page
*** 48,11 ***
          this.projectPrefix = projectPrefix;
  
          // Materialize the PR's target ref
          try {
              var repository = pr.repository();
!             localRepo = Repository.materialize(localRepoPath, repository.url(), pr.targetRef());
              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);
--- 48,12 ---
          this.projectPrefix = projectPrefix;
  
          // Materialize the PR's target ref
          try {
              var repository = pr.repository();
!             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 >