<p>I was using <a href="http://nuclearsquid.com/writings/git-new-workdir/"><code>git-new-workdir</code></a> and recently switched to using the newer form <a href="https://github.com/blog/2042-git-2-5-including-multiple-worktrees-and-triangular-workflows"><code>git worktree</code></a> however found this stops the plugin working.</p>

<p>The reason appears to be that instead of  a <code>.git</code> directory in the 'worktee directory' there is a <code>.git</code> file that contains a reference to the original directory. e.g. <code>gitdir: /home/ubuntu/origdir.git/.git/worktrees/newdir.git</code>. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/issues/285">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyPdEgr9N71-ZyogFVqG13u9keZ7ks5o0dtHgaJpZM4GCBEI.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/issues/285"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>