|
|
@ -362,8 +362,8 @@ class DGitProvider extends Plugin { |
|
|
|
|
|
|
|
|
|
|
|
let remotes: remote[] = [] |
|
|
|
let remotes: remote[] = [] |
|
|
|
try { |
|
|
|
try { |
|
|
|
remotes = (await git.listRemotes({ ...config ? config : await this.addIsomorphicGitConfigFS() })).map((remote) =>
|
|
|
|
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) { |
|
|
|
} catch (e) { |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
@ -1025,7 +1025,6 @@ class DGitProvider extends Plugin { |
|
|
|
|
|
|
|
|
|
|
|
const user = await octokit.request('GET /user') |
|
|
|
const user = await octokit.request('GET /user') |
|
|
|
const emails = await octokit.request('GET /user/emails') |
|
|
|
const emails = await octokit.request('GET /user/emails') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const scopes = user.headers['x-oauth-scopes']; |
|
|
|
const scopes = user.headers['x-oauth-scopes']; |
|
|
|
|
|
|
|
|
|
|
|