Skip to content

getting native repository path #2246

Description

@gotoh

We get a repository path as git format (e.g. "c:/foo/bar")
by clicking "Copy Repository Path" item on context menu of repository tab in LauncherTabBar.
I suspect it should be OS native path.
This fix is required:

index 832cb641..2e35fb87 100644
--- a/src/Views/LauncherTabBar.axaml.cs+++ b/src/Views/LauncherTabBar.axaml.cs@@ -298,7 +298,8 @@ namespace SourceGit.Views
copyPath.Icon = this.CreateMenuIcon("Icons.Copy");
copyPath.Click += async (_, ev) =>
{
- await this.CopyTextAsync(repo.FullPath);+ var fullPath = Native.OS.GetAbsPath(repo.FullPath, "");+ await this.CopyTextAsync(fullPath);
ev.Handled = true;
};
menu.Items.Add(copyPath);

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions