twosigma / git-meta

Repository for the git-meta project -- build your own monorepo using Git submodules
http://twosigma.github.io/git-meta
BSD 3-Clause "New" or "Revised" License
216 stars 50 forks source link

git meta fails with worktrees #142

Open novalis opened 7 years ago

novalis commented 7 years ago

When running git meta in a worktree $ git meta open sub2 Could not find Git directory from /home/novalis/twosigma/demo/wt.

novalis commented 7 years ago

This is due to https://github.com/libgit2/libgit2/pull/3436 , which is not merged because upstream git hasn't actually figured out how to correctly handle worktrees plus submodules, so libgit2 doesn't want to make any decisions. It appears that upstream is in part stalled because nobody fully understands both worktrees and submodules.

novalis commented 7 years ago

Oh, but it looks like maybe there's some progress on this -- Duy and Stefan are both working on the relevant bits of the code. So there's probably not immediately something useful for me to do here.