Skip to content

Commit

Permalink
Merge pull request centic9#91 from jmini/patch-2
Browse files Browse the repository at this point in the history
Fix RefNotFoundException
  • Loading branch information
centic9 authored Jan 9, 2023
2 parents 91365b3 + b8dd466 commit c67a959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/dstadler/jgit/unfinished/TrackMaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public static void main(String[] args) throws IOException, GitAPIException {

// now open the created repository
FileRepositoryBuilder builder = new FileRepositoryBuilder();
try (Repository repository = builder.setGitDir(localPath)
try (Repository repository = builder
.readEnvironment() // scan environment GIT_* variables
.findGitDir() // scan up the file system tree
.findGitDir(localPath) // scan up the file system tree
.build()) {
try (Git git = new Git(repository)) {
git.branchCreate()
Expand Down

0 comments on commit c67a959

Please sign in to comment.