diff --git a/src/Views/AddWorktree.axaml.cs b/src/Views/AddWorktree.axaml.cs index 563ed913..8e16642e 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.TrimEnd('\\'); + TxtLocation.Text = folderPath.TrimEnd(['\\', '/']); } } catch (Exception exception)