getkyo / kyo

Toolkit for Scala Development
https://getkyo.io
Apache License 2.0
481 stars 38 forks source link

Add workaround for git worktree #483

Closed steinybot closed 2 weeks ago

steinybot commented 2 weeks ago

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.

sideeffffect commented 2 weeks ago

Could this even be upstreamed to sbt-git?

steinybot commented 2 weeks ago

Yep, I've got a PR there https://github.com/sbt/sbt-git/pull/243. Dunno how long it'll take to get in there.

Not sure if you mind having a temporary workaround. It's a bit fiddly having to reapply this change every time I switch branches.

fwbrasil commented 2 weeks ago

LGTM! Let's remove the workaround later in case you manage to get the change upstream.