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

Commit d789c4e

Browse files
committed
Show warning when local clone already exists
"You have already cloned to this location. Click 'Open' to open the local repository."
1 parent 7344458 commit d789c4e

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/GitHub.App/ViewModels/Dialog/Clone/RepositoryCloneViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ string ValidatePathWarning(IRepositoryModel repositoryModel, string path)
267267
{
268268
return string.Format(CultureInfo.CurrentCulture, Resources.LocalRepositoryHasARemoteOf, localUrl);
269269
}
270+
271+
return Resources.YouHaveAlreadyClonedToThisLocation;
270272
}
271273
}
272274
}

src/GitHub.Resources/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GitHub.Resources/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,4 +833,7 @@ https://git-scm.com/download/win</value>
833833
<data name="LocalRepositoryHasARemoteOf" xml:space="preserve">
834834
<value>Local repository has a remote of {0}.</value>
835835
</data>
836+
<data name="YouHaveAlreadyClonedToThisLocation" xml:space="preserve">
837+
<value>You have already cloned to this location. Click 'Open' to open the local repository.</value>
838+
</data>
836839
</root>

0 commit comments

Comments
 (0)