Fetch all remotes after new remote was added

This commit is contained in:
leo 2020-07-04 17:25:55 +08:00
parent d0f6077dc9
commit 78fc438557

View file

@ -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>