fix: mismatch of local repo name after cloning git-bundle without specifying Local Name (#1460)
Some checks are pending
Localization Check / localization-check (push) Waiting to run
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-26 10:21:57 +08:00
parent 4f08abdad4
commit 67efe76b97
No known key found for this signature in database

View file

@ -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));
}