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

Commit a4fe246

Browse files
committed
Make GetAbsolutePath use Windows '\' separator
1 parent 9189d6b commit a4fe246

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitHub.App/Services/PullRequestEditorService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,9 @@ void ShowInfoMessage(string message)
516516

517517
static string GetAbsolutePath(IPullRequestSession session, IPullRequestSessionFile file)
518518
{
519-
return Path.Combine(session.LocalRepository.LocalPath, file.RelativePath);
519+
var localPath = session.LocalRepository.LocalPath;
520+
var relativePath = file.RelativePath.Replace('/', Path.DirectorySeparatorChar);
521+
return Path.Combine(localPath, relativePath);
520522
}
521523

522524
static IDisposable OpenInProvisionalTab()

0 commit comments

Comments
 (0)