Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Dec 18, 2022
1 parent f6f37f4 commit 38ca03b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spotless {
trimTrailingWhitespace()
endWithNewline()
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2021 DiffPlug
* Copyright 2020-2022 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -138,7 +138,7 @@ private static boolean worktreeIsCleanCheckout(TreeWalk treeWalk) {
private final static int WORKDIR = 2;

Map<Project, Repository> gitRoots = new HashMap<>();
Map<File, Repository> gitRepositories = new HashMap<>();
Map<File, Repository> gitRepositories = new HashMap<>();
Table<Repository, String, ObjectId> rootTreeShaCache = HashBasedTable.create();
Map<Project, ObjectId> subtreeShaCache = new HashMap<>();

Expand Down Expand Up @@ -192,13 +192,13 @@ private static boolean isGitRoot(File dir) {
}

Repository createRepo(File dir) throws IOException {
File dotGitDir = GitWorkarounds.getDotGitDir(dir);
Repository repo = gitRepositories.get(dotGitDir);
if (repo == null) {
repo = FileRepositoryBuilder.create(dotGitDir);
gitRepositories.put(dotGitDir, repo);
}
return repo;
File dotGitDir = GitWorkarounds.getDotGitDir(dir);
Repository repo = gitRepositories.get(dotGitDir);
if (repo == null) {
repo = FileRepositoryBuilder.create(dotGitDir);
gitRepositories.put(dotGitDir, repo);
}
return repo;
}

/**
Expand Down

0 comments on commit 38ca03b

Please sign in to comment.