|
43 | 43 |
|
44 | 44 | import com.junichi11.netbeans.modules.github.issues.GitHubCache; |
45 | 45 | import com.junichi11.netbeans.modules.github.issues.GitHubIcons; |
| 46 | +import com.junichi11.netbeans.modules.github.issues.GitHubIssues; |
46 | 47 | import com.junichi11.netbeans.modules.github.issues.GitHubIssuesConfig; |
47 | 48 | import com.junichi11.netbeans.modules.github.issues.GitHubIssuesConnector; |
48 | 49 | import com.junichi11.netbeans.modules.github.issues.egit.SearchIssuesParams; |
|
83 | 84 | import org.eclipse.egit.github.core.RepositoryCommitCompare; |
84 | 85 | import org.eclipse.egit.github.core.User; |
85 | 86 | import org.eclipse.egit.github.core.client.GitHubClient; |
| 87 | +import org.eclipse.egit.github.core.client.IGitHubConstants; |
86 | 88 | import org.eclipse.egit.github.core.service.CollaboratorService; |
87 | 89 | import org.eclipse.egit.github.core.service.CommitService; |
88 | 90 | import org.eclipse.egit.github.core.service.IssueService; |
@@ -1005,7 +1007,11 @@ public Repository getRepository() { |
1005 | 1007 | } |
1006 | 1008 |
|
1007 | 1009 | public void setRepositoryInfo(GitHubRepositoryInfo githubRepositoryInfo) { |
1008 | | - String url = String.format("https://%s/%s/%s/issues/", githubRepositoryInfo.getHostname(), githubRepositoryInfo.getRepositoryAuthor(), githubRepositoryInfo.getRepositoryName()); // NOI18N |
| 1010 | + String hostname = githubRepositoryInfo.getHostname(); |
| 1011 | + if (hostname.equals(GitHubIssues.DEFAULT_HOSTNAME)) { |
| 1012 | + hostname = IGitHubConstants.HOST_DEFAULT; |
| 1013 | + } |
| 1014 | + String url = String.format("https://%s/%s/%s/issues/", hostname, githubRepositoryInfo.getRepositoryAuthor(), githubRepositoryInfo.getRepositoryName()); // NOI18N |
1009 | 1015 | repositoryInfo = createRepositoryInfo(githubRepositoryInfo, url, githubRepositoryInfo.getUserName(), null, null, null); |
1010 | 1016 | setProperties(githubRepositoryInfo); |
1011 | 1017 | } |
|
0 commit comments