mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
fix: mismatch of local repo name after cloning git-bundle without specifying Local Name (#1460)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user