From 20daa584e325cc4fe8cb31702244c16d24016089 Mon Sep 17 00:00:00 2001 From: Ihor <74456398+SilverWolf2k20@users.noreply.github.com> Date: Sat, 21 Jun 2025 08:25:55 +0600 Subject: [PATCH] fix: fix working tree folder path detection error (#1442) 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)