We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.git
1 parent 5845ef3 commit 398b146Copy full SHA for 398b146
src/ViewModels/Repository.cs
@@ -459,7 +459,7 @@ public void Open()
459
{
460
// For worktrees, we need to watch the $GIT_COMMON_DIR instead of the $GIT_DIR.
461
var gitDirForWatcher = _gitDir;
462
- if (_gitDir.Replace("\\", "/").IndexOf(".git/worktrees/", StringComparison.Ordinal) > 0)
+ if (_gitDir.Replace("\\", "/").IndexOf("/worktrees/", StringComparison.Ordinal) > 0)
463
464
var commonDir = new Commands.QueryGitCommonDir(_fullpath).Result();
465
if (!string.IsNullOrEmpty(commonDir))
0 commit comments