code_style: move SourceGit.CommandExtensions to SourceGit.ViewModels.CommandExtensions

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-18 10:24:20 +08:00
parent afe5d4b969
commit 892f3b8032
No known key found for this signature in database
4 changed files with 14 additions and 16 deletions

View file

@ -60,7 +60,7 @@
{
bool exists = new Remote(repo).HasBranch(remote, name);
if (exists)
return new Push(repo, remote, $"refs/heads/{name}", true).Use(log).Exec();
return new Push(repo, remote, $"refs/heads/{name}", true) { Log = log }.Exec();
var cmd = new Command();
cmd.WorkingDirectory = repo;