mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07: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>
|
/// <param name="url"></param>
|
||||||
public static void Add(Repository repo, string name, string url) {
|
public static void Add(Repository repo, string name, string url) {
|
||||||
var errs = repo.RunCommand($"remote add {name} {url}", null);
|
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>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue