mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-26 12:55:00 +00:00
fix: mismatch of local repo name after cloning git-bundle
without specifying Local Name
(#1460)
Some checks are pending
Some checks are pending
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
4f08abdad4
commit
67efe76b97
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue