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

Commit 75a3df4

Browse files
author
Jasmine
committed
check if a git repo
1 parent 16cdf7c commit 75a3df4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/GitHub.VisualStudio/Base/MenuBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ protected async Task<bool> IsGitHubRepo()
113113
{
114114
RefreshRepo();
115115

116+
if(ActiveRepo == null)
117+
return false;
118+
116119
var uri = ActiveRepo.CloneUrl;
117120
if (uri == null)
118121
return false;

0 commit comments

Comments
 (0)