Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Commit 4ee437f

Browse files
authored
Fix same-repo exclusion (#80)
1 parent 3eafee6 commit 4ee437f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lang-go.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function rootURIFromDoc(doc: sourcegraph.TextDocument): URL {
274274

275275
function repoNameFromDoc(doc: sourcegraph.TextDocument): string {
276276
const url = new URL(doc.uri)
277-
return url.pathname.slice(2)
277+
return path.join(url.hostname, url.pathname.slice(1))
278278
}
279279

280280
/**

0 commit comments

Comments
 (0)