fix: when upstream is null show CommitAndPush and stop auto push (#955) (#956)

This commit is contained in:
GadflyFang 2025-02-07 11:30:14 +08:00 committed by GitHub
parent d1f3469250
commit 2105fd450d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 13 deletions

View file

@ -937,9 +937,6 @@ namespace SourceGit.ViewModels
CurrentBranch = branches.Find(x => x.IsCurrent);
LocalBranchTrees = builder.Locals;
RemoteBranchTrees = builder.Remotes;
if (_workingCopy != null)
_workingCopy.CanCommitWithPush = _currentBranch != null && !string.IsNullOrEmpty(_currentBranch.Upstream);
});
}