From a29a35059b5c28d031c561eacf7cc988493f0c42 Mon Sep 17 00:00:00 2001 From: Ihor <74456398+SilverWolf2k20@users.noreply.github.com> Date: Fri, 20 Jun 2025 23:47:31 +0300 Subject: [PATCH] fix: fix working tree folder path detection error Fix the error of adding an extra slash when selecting a working tree directory. --- src/Views/AddWorktree.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/AddWorktree.axaml.cs b/src/Views/AddWorktree.axaml.cs index dad947de..563ed913 100644 --- a/src/Views/AddWorktree.axaml.cs +++ b/src/Views/AddWorktree.axaml.cs @@ -26,7 +26,7 @@ namespace SourceGit.Views { var folder = selected[0]; var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder?.Path.ToString(); - TxtLocation.Text = folderPath; + TxtLocation.Text = folderPath.TrimEnd('\\'); } } catch (Exception exception)