From 67efe76b975430948136a442f9ba69ff01c0fae4 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 26 Jun 2025 10:21:57 +0800 Subject: [PATCH] fix: mismatch of local repo name after cloning `git-bundle` without specifying `Local Name` (#1460) Signed-off-by: leo --- src/ViewModels/Clone.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ViewModels/Clone.cs b/src/ViewModels/Clone.cs index 94a74893..c6f09d24 100644 --- a/src/ViewModels/Clone.cs +++ b/src/ViewModels/Clone.cs @@ -120,6 +120,9 @@ namespace SourceGit.ViewModels var name = Path.GetFileName(_remote)!; if (name.EndsWith(".git", StringComparison.Ordinal)) name = name.Substring(0, name.Length - 4); + else if (name.EndsWith(".bundle", StringComparison.Ordinal)) + name = name.Substring(0, name.Length - 7); + path = Path.GetFullPath(Path.Combine(path, name)); }