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

Commit 534b4c7

Browse files
Sepcifying the culture in format string
1 parent 7629a2f commit 534b4c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitHub.App/ViewModels/Dialog/ForkRepositoryExecuteViewModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.ComponentModel.Composition;
3+
using System.Globalization;
34
using System.Reactive.Linq;
45
using System.Threading.Tasks;
56
using GitHub.Api;
@@ -76,7 +77,8 @@ public async Task InitializeAsync(ILocalRepositoryModel sourceRepository, IAccou
7677
UriString CreateForkUri(UriString url, string login)
7778
{
7879
var original = url.ToRepositoryUrl();
79-
return new UriString($"{original.Scheme}://{original.Authority}/{login}/{url.RepositoryName}");
80+
var forkUri = string.Format(CultureInfo.CurrentCulture, "{0}://{1}/{2}/{3}", original.Scheme, original.Authority, login, url.RepositoryName);
81+
return new UriString(forkUri);
8082
}
8183

8284
IObservable<Repository> OnCreateFork(object o)

0 commit comments

Comments
 (0)