|
|
|
@ -363,7 +363,7 @@ class DGitProvider extends Plugin { |
|
|
|
|
let remotes: remote[] = [] |
|
|
|
|
try { |
|
|
|
|
remotes = (await git.listRemotes({ ...config ? config : await this.addIsomorphicGitConfigFS() })).map((remote) => |
|
|
|
|
{ return { name: remote.remote, url: remote.url } } |
|
|
|
|
{ return { name: remote.remote, url: remote.url } } |
|
|
|
|
) |
|
|
|
|
} catch (e) { |
|
|
|
|
// do nothing
|
|
|
|
@ -1026,7 +1026,6 @@ class DGitProvider extends Plugin { |
|
|
|
|
const user = await octokit.request('GET /user') |
|
|
|
|
const emails = await octokit.request('GET /user/emails') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const scopes = user.headers['x-oauth-scopes']; |
|
|
|
|
|
|
|
|
|
console.log('scopes', scopes) |
|
|
|
|