Skip to content

Commit d45def5

Browse files
SLCORE-1216 Fix fallback to JGit on windows when git.exe is not in PATH
1 parent 1b46e8b commit d45def5

File tree

1 file changed

+1
-1
lines changed
  • backend/commons/src/main/java/org/sonarsource/sonarlint/core/commons/util/git

1 file changed

+1
-1
lines changed

backend/commons/src/main/java/org/sonarsource/sonarlint/core/commons/util/git/GitUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private static String getNativeGitExecutable() {
154154
if (exitCode == 0) {
155155
nativeGitExecutable = executable;
156156
}
157-
} catch (IOException e) {
157+
} catch (IOException | IllegalStateException e) {
158158
LOG.debug("Checking for native Git executable failed", e);
159159
} catch (InterruptedException e) {
160160
Thread.currentThread().interrupt();

0 commit comments

Comments
 (0)