--
You received this message because you are subscribed to the Google Groups "StGit (Stacked Git)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stgit+unsubscribe@googlegroups.com.
To post to this group, send email to st...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/stgit/CALeBojS8vRXV8mjX8av4cD%2BHJZeqk9b_8ohuL_W1jeG_nwV45A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
The best way to solve this is probably to put all the metadata in the foo.stgit branch, and not use the file system at all.On Tue, Aug 22, 2017 at 11:55 AM, Erik Carstensen <mando...@gmail.com> wrote:Hi.I have a repo with multiple worktrees, using git-worktree. I discovered that this does not play well with stg: Stack metadata for a branch are stored as files in a worktree-private directory (.git/worktrees/<worktree name>/patches/<branch name>), which effectively means that a patch stack is private for the worktree where 'stg init' was run. If you attempt to run stg on a branch that was initialized in a different worktree, then it will crash.The problem can be worked around by manually adding symlinks for each branch into each other worktree-private directory, so that the patches/ directory is visible to other worktrees.The attached script demonstrates the problem and the workaround.
--
You received this message because you are subscribed to the Google Groups "StGit (Stacked Git)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stgit+un...@googlegroups.com.