mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix: Fixed the problem that the switching branch of the worktree repo is not displayed
This commit is contained in:
parent
9aa723ec49
commit
0e0d3d64b4
1 changed files with 2 additions and 1 deletions
|
@ -180,7 +180,8 @@ namespace SourceGit.Models
|
|||
}
|
||||
else if (name.Equals("HEAD", StringComparison.Ordinal) ||
|
||||
name.StartsWith("refs/heads/", StringComparison.Ordinal) ||
|
||||
name.StartsWith("refs/remotes/", StringComparison.Ordinal))
|
||||
name.StartsWith("refs/remotes/", StringComparison.Ordinal) ||
|
||||
(name.StartsWith("worktrees/", StringComparison.Ordinal) && name.EndsWith("/HEAD", StringComparison.Ordinal)))
|
||||
{
|
||||
_updateBranch = DateTime.Now.AddSeconds(.5).ToFileTime();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue