mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
feature: add CurrentBranch
property to ViewModels.Repository
This commit is contained in:
parent
f8caeceade
commit
6f317039ab
4 changed files with 63 additions and 64 deletions
|
@ -68,7 +68,7 @@ namespace SourceGit.ViewModels
|
|||
public Pull(Repository repo, Models.Branch specifiedRemoteBranch)
|
||||
{
|
||||
_repo = repo;
|
||||
_current = repo.Branches.Find(x => x.IsCurrent);
|
||||
_current = repo.CurrentBranch;
|
||||
|
||||
if (specifiedRemoteBranch != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue