Skip to content

Commit 46ea8d8

Browse files
authored
Merge pull request #351 from alejandrohdezma/alejandrohdezma-patch-1
Allow changing `useConsoleForROGit` by using a environment variable
2 parents 418a124 + 0f0b434 commit 46ea8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/github/sbt/git/GitPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ object SbtGit {
116116
// Build settings.
117117
import GitKeys.*
118118
def buildSettings = Seq(
119-
useConsoleForROGit := false,
119+
useConsoleForROGit := sys.env.contains("SBT_GIT_USE_CONSOLE_FOR_RO_GIT"),
120120
gitReader := new DefaultReadableGit(
121121
baseDirectory.value,
122122
if (useConsoleForROGit.value) Some(new ConsoleGitReadableOnly(ConsoleGitRunner, file("."), sLog.value)) else None

0 commit comments

Comments
 (0)