Skip to content

Commit a68a424

Browse files
authored
Add workaround for git worktree (#483)
Take 2. Turns out it is actually quite easy to detect if the current workspace is a linked workspace because `.git` is a file instead of a directory.
1 parent 1605b9c commit a68a424

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.sbt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import com.github.sbt.git.SbtGit.GitKeys.useConsoleForROGit
2+
13
val scala3Version = "3.4.2"
24
val scala212Version = "2.12.19"
35
val scala213Version = "2.13.14"
@@ -21,6 +23,8 @@ sonatypeRepository := "https://s01.oss.sonatype.org/service/loca
2123
sonatypeProfileName := "io.getkyo"
2224
publish / skip := true
2325

26+
ThisBuild / useConsoleForROGit := (baseDirectory.value / ".git").isFile
27+
2428
lazy val `kyo-settings` = Seq(
2529
fork := true,
2630
scalaVersion := scala3Version,

0 commit comments

Comments
 (0)