mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 21:54:59 +00:00
refactor: use git update-ref $LOCAL_BRANCH $REMOTE_BRANCH
instead of git fetch $REMOTE $LOCAL_BRANCH $REMOTE_BRANCH
to fast-forward local branch without checkout it first.
This commit is contained in:
parent
00a2ec5abe
commit
3b1a54dffd
3 changed files with 24 additions and 11 deletions
|
@ -31,7 +31,7 @@ namespace SourceGit.ViewModels
|
|||
|
||||
return Task.Run(() =>
|
||||
{
|
||||
new Commands.Fetch(_repo.FullPath, To.Remote, Local.Name, To.Name, SetProgressDescription).Exec();
|
||||
new Commands.UpdateRef(_repo.FullPath, Local.FullName, To.FullName, SetProgressDescription).Exec();
|
||||
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
||||
return true;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue