Skip to content

Commit

Permalink
SLCORE-1140: Don't log an error when not in Git repository
Browse files Browse the repository at this point in the history
Currently when users are not in a Git repository there is an error logged for every action trying to invoke Git. This is too noisy and misleading as this is not an actual error.
  • Loading branch information
thahnen committed Jan 24, 2025
1 parent 782c922 commit fc66d8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static Repository getRepositoryForDir(Path projectDir, ClientLogOutput cl
.findGitDir(projectDir.toFile())
.setMustExist(true);
if (builder.getGitDir() == null) {
clientLogOutput.log("Not inside a Git work tree: " + projectDir, ClientLogOutput.Level.ERROR);
clientLogOutput.log("Not inside a Git work tree: " + projectDir, ClientLogOutput.Level.DEBUG);
return null;
}
return builder.build();
Expand Down

0 comments on commit fc66d8e

Please sign in to comment.