Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 06425b1

Browse files
authored
Merge branch 'master' into fixes/551-link-to-button
2 parents 1b20b73 + 91a37fa commit 06425b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/GitHub.App/Services/RepositoryPublishService.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ public string LocalRepositoryName
4040
{
4141
return Observable.Defer(() => apiClient.CreateRepository(newRepository, account.Login, account.IsUser)
4242
.Select(remoteRepo => new { RemoteRepo = remoteRepo, LocalRepo = activeRepository }))
43-
.Select(async repo =>
43+
.SelectMany(async repo =>
4444
{
4545
await gitClient.SetRemote(repo.LocalRepo, "origin", new Uri(repo.RemoteRepo.CloneUrl));
4646
await gitClient.Push(repo.LocalRepo, "master", "origin");
4747
await gitClient.Fetch(repo.LocalRepo, "origin");
4848
await gitClient.SetTrackingBranch(repo.LocalRepo, "master", "origin");
4949
return repo.RemoteRepo;
50-
})
51-
.Select(t => t.Result);
50+
});
5251
}
5352
}
5453
}

0 commit comments

Comments
 (0)