Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit b7cd425

Browse files
committed
Add support for cloning into empty dir.
1 parent 7c998ec commit b7cd425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/Services/RepositoryCloneService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public async Task CloneOrOpenRepository(
129129

130130
var repositoryUrl = url.ToRepositoryUrl();
131131
var isDotCom = HostAddress.IsGitHubDotComUri(repositoryUrl);
132-
if (DestinationDirectoryExists(repositoryPath))
132+
if (DestinationDirectoryExists(repositoryPath) && !DestinationDirectoryEmpty(repositoryPath))
133133
{
134134
if (!IsSolutionInRepository(repositoryPath))
135135
{

0 commit comments

Comments
 (0)