Skip to content

Commit 67efe76

Browse files
committed
fix: mismatch of local repo name after cloning git-bundle without specifying Local Name (#1460)
Signed-off-by: leo <[email protected]>
1 parent 4f08abd commit 67efe76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ViewModels/Clone.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ public override Task<bool> Sure()
120120
var name = Path.GetFileName(_remote)!;
121121
if (name.EndsWith(".git", StringComparison.Ordinal))
122122
name = name.Substring(0, name.Length - 4);
123+
else if (name.EndsWith(".bundle", StringComparison.Ordinal))
124+
name = name.Substring(0, name.Length - 7);
125+
123126
path = Path.GetFullPath(Path.Combine(path, name));
124127
}
125128

0 commit comments

Comments
 (0)