Skip to content

Commit

Permalink
Update src/test/java/org/kohsuke/github/GHRepositoryForkBuilderTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman authored Jan 16, 2025
1 parent 381931b commit 4d9581a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public void setUp() throws Exception {
originalInterval = GHRepositoryForkBuilder.FORK_RETRY_INTERVAL;
GHRepositoryForkBuilder.FORK_RETRY_INTERVAL = 100;

GitHub github = getNonRecordingGitHub();
GHRepository repo = github.getRepository(this.repo.getFullName());
String defaultBranch = repo.getDefaultBranch();
GHRef mainRef = repo.getRef("heads/" + defaultBranch);
String mainSha = mainRef.getObject().getSha();
Expand Down

0 comments on commit 4d9581a

Please sign in to comment.