pull/4791/head
filip mertens 6 months ago
parent b277fab6e4
commit 8c1a134a56
  1. 1
      apps/remix-ide/src/app/files/dgitProvider.ts
  2. 1
      libs/remix-ui/git/src/components/github/devicecode.tsx
  3. 2
      libs/remix-ui/git/src/lib/gitactions.ts

@ -400,7 +400,6 @@ class DGitProvider extends Plugin {
const defaultConfig = await this.addIsomorphicGitConfigFS() const defaultConfig = await this.addIsomorphicGitConfigFS()
const cmd = config ? defaultConfig ? { ...defaultConfig, ...config } : config : defaultConfig const cmd = config ? defaultConfig ? { ...defaultConfig, ...config } : config : defaultConfig
const name = await git.currentBranch(cmd) const name = await git.currentBranch(cmd)
console.log('current branch', name)
let remote: remote = undefined let remote: remote = undefined
try { try {
const remoteName = await git.getConfig({ const remoteName = await git.getConfig({

@ -73,7 +73,6 @@ export const GetDeviceCode = () => {
await actions.loadGitHubUserFromToken() await actions.loadGitHubUserFromToken()
} }
return ( return (
<> <>
{(context.gitHubUser && context.gitHubUser.login) ? null : {(context.gitHubUser && context.gitHubUser.login) ? null :

@ -563,7 +563,7 @@ export const loadGitHubUserFromToken = async () => {
type: 'success', type: 'success',
message: `Github user loaded...` message: `Github user loaded...`
}) })
}else{ } else {
sendToGitLog({ sendToGitLog({
type: 'error', type: 'error',
message: `Please check your GitHub token in the GitHub settings.` message: `Please check your GitHub token in the GitHub settings.`

Loading…
Cancel
Save