sbt-git-hooks icon indicating copy to clipboard operation
sbt-git-hooks copied to clipboard

Support for git worktrees

Open er2 opened this issue 6 years ago • 0 comments

https://github.com/randomcoder/sbt-git-hooks/blob/f824621547f987a3a383f37d414ba1434ddcbc99/src/main/scala/uk/co/randomcoding/sbt/GitHooks.scala#L42

This will fail if the repo is a worktree, in which case .git is a file and hooks are stored in a bare repository. To find that bare repository you can parse the output of git worktree list --porcelain

er2 avatar May 02 '19 16:05 er2