Skip to content

Commit 95707ab

Browse files
authored
extensions: copy operation create client pointing at dot com (#409)
1 parent 8c0f438 commit 95707ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/src/extensions_copy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Copy an extension from Sourcegraph.com to your private registry.
7373
}
7474

7575
withCfg(&config{Endpoint: "https://sourcegraph.com"}, func() {
76+
dotComClient := cfg.apiClient(apiFlags, flagSet.Output())
7677
query := `query GetExtension(
7778
$extensionID: String!
7879
){
@@ -86,7 +87,7 @@ Copy an extension from Sourcegraph.com to your private registry.
8687
}
8788
}`
8889

89-
ok, err = client.NewRequest(query, map[string]interface{}{
90+
ok, err = dotComClient.NewRequest(query, map[string]interface{}{
9091
"extensionID": extensionID,
9192
}).Do(ctx, &extensionResult)
9293
})

0 commit comments

Comments
 (0)