mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix: missing empty check for %(upstream:trackshort)
(#273)
This commit is contained in:
parent
720b2b65f3
commit
b972bfd5f1
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ namespace SourceGit.Commands
|
|||
branch.IsCurrent = parts[2] == "*";
|
||||
branch.Upstream = parts[3];
|
||||
|
||||
if (branch.IsLocal && !parts[4].Equals("=", StringComparison.Ordinal))
|
||||
if (branch.IsLocal && !string.IsNullOrEmpty(parts[4]) && !parts[4].Equals("=", StringComparison.Ordinal))
|
||||
_needQueryTrackStatus.Add(branch);
|
||||
else
|
||||
branch.TrackStatus = new Models.BranchTrackStatus();
|
||||
|
|
Loading…
Reference in a new issue