mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-23 01:36:57 -08:00
Merge pull request #116 from gadfly3173/fix/worktree-branch-switch
fix: Fixed the problem that the switching branch of the worktree repo…
This commit is contained in:
commit
6cd550af4d
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