mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
Fetch all remotes after new remote was added
This commit is contained in:
parent
d0f6077dc9
commit
78fc438557
1 changed files with 5 additions and 1 deletions
|
@ -54,7 +54,11 @@ namespace SourceGit.Git {
|
|||
/// <param name="url"></param>
|
||||
public static void Add(Repository repo, string name, string url) {
|
||||
var errs = repo.RunCommand($"remote add {name} {url}", null);
|
||||
if (errs != null) App.RaiseError(errs);
|
||||
if (errs != null) {
|
||||
App.RaiseError(errs);
|
||||
} else {
|
||||
repo.Fetch(null, true, null);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue