Show warning when local clone already exists

"You have already cloned to this location. Click 'Open' to open the
local repository."
This commit is contained in:
Jamie Cansdale 2018-09-27 11:04:34 +01:00
Родитель 7344458588
Коммит d789c4ed61
3 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -267,6 +267,8 @@ namespace GitHub.ViewModels.Dialog.Clone
{
return string.Format(CultureInfo.CurrentCulture, Resources.LocalRepositoryHasARemoteOf, localUrl);
}
return Resources.YouHaveAlreadyClonedToThisLocation;
}
}
}

9
src/GitHub.Resources/Resources.Designer.cs сгенерированный
Просмотреть файл

@ -2180,6 +2180,15 @@ namespace GitHub {
}
}
/// <summary>
/// Looks up a localized string similar to You have already cloned to this location. Click &apos;Open&apos; to open the local repository..
/// </summary>
public static string YouHaveAlreadyClonedToThisLocation {
get {
return ResourceManager.GetString("YouHaveAlreadyClonedToThisLocation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You must commit and push your changes to add a comment here..
/// </summary>

Просмотреть файл

@ -833,4 +833,7 @@ https://git-scm.com/download/win</value>
<data name="LocalRepositoryHasARemoteOf" xml:space="preserve">
<value>Local repository has a remote of {0}.</value>
</data>
<data name="YouHaveAlreadyClonedToThisLocation" xml:space="preserve">
<value>You have already cloned to this location. Click 'Open' to open the local repository.</value>
</data>
</root>