diff --git a/src/GitHub.App/Services/DialogService.cs b/src/GitHub.App/Services/DialogService.cs index e3f2c40f95..1bf666c7d2 100644 --- a/src/GitHub.App/Services/DialogService.cs +++ b/src/GitHub.App/Services/DialogService.cs @@ -2,6 +2,7 @@ using System.ComponentModel.Composition; using System.Threading.Tasks; using GitHub.Api; +using GitHub.Exports; using GitHub.Extensions; using GitHub.Factories; using GitHub.Models; @@ -38,7 +39,13 @@ public async Task ShowCloneDialog(IConnection connection, str if (string.IsNullOrEmpty(url)) { var clipboardContext = gitHubContextService.FindContextFromClipboard(); - url = clipboardContext?.Url; + switch (clipboardContext?.LinkType) + { + case LinkType.Blob: + case LinkType.Repository: + url = clipboardContext?.Url; + break; + } } var viewModel = factory.CreateViewModel();