rdesktop2
bunsenstraat 1 year ago
parent dc8cf19bf1
commit cc3d9ea5fb
  1. 4
      apps/remix-ide/src/app/files/dgitProvider.js
  2. 15
      apps/remixdesktop/src/plugins/isoGitPlugin.ts

@ -132,7 +132,7 @@ class DGitProvider extends Plugin {
} }
async rm(cmd) { async rm(cmd) {
console.log('rm', cmd)
if (isElectron()) { if (isElectron()) {
await this.call('isogit', 'rm', cmd) await this.call('isogit', 'rm', cmd)
} else { } else {
@ -318,11 +318,13 @@ class DGitProvider extends Plugin {
if (isElectron()) { if (isElectron()) {
const readBlobResult = await this.call('isogit', 'readblob', cmd) const readBlobResult = await this.call('isogit', 'readblob', cmd)
console.log('readblob', readBlobResult) console.log('readblob', readBlobResult)
return readBlobResult
} }
const readBlobResult = await git.readBlob({ const readBlobResult = await git.readBlob({
...await this.getGitConfig(), ...await this.getGitConfig(),
...cmd ...cmd
}) })
return readBlobResult return readBlobResult
} }

@ -83,7 +83,6 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
if(this.gitIsInstalled){ if(this.gitIsInstalled){
const status = await gitProxy.status(this.workingDir) const status = await gitProxy.status(this.workingDir)
console.log('STATUS', status)
return status return status
} }
@ -110,7 +109,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
...await this.getGitConfig(), ...await this.getGitConfig(),
...cmd ...cmd
}) })
console.log('LOG', log)
return log return log
} }
@ -125,7 +124,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
} }
async rm(cmd: any) { async rm(cmd: any) {
console.log('rm') console.log('rm', cmd)
const rm = await git.remove({ const rm = await git.remove({
...await this.getGitConfig(), ...await this.getGitConfig(),
...cmd ...cmd
@ -157,7 +156,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
...await this.getGitConfig(), ...await this.getGitConfig(),
...cmd ...cmd
}) })
console.log('BRANCH', branch)
return branch return branch
} }
@ -167,7 +166,6 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
...await this.getGitConfig(), ...await this.getGitConfig(),
...cmd ...cmd
}) })
console.log('LSFILES', lsfiles)
return lsfiles return lsfiles
} }
@ -177,7 +175,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
...await this.getGitConfig(), ...await this.getGitConfig(),
...cmd ...cmd
}) })
console.log('RESOLVEREF', resolveref)
return resolveref return resolveref
} }
@ -188,7 +186,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
...await this.getGitConfig(), ...await this.getGitConfig(),
...cmd ...cmd
}) })
console.log('READBLOB', readblob)
return readblob return readblob
} }
@ -283,7 +281,6 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
remotes = async () => { remotes = async () => {
let remotes = [] let remotes = []
remotes = await git.listRemotes({ ...await this.getGitConfig() }) remotes = await git.listRemotes({ ...await this.getGitConfig() })
console.log('remotes', remotes)
return remotes return remotes
} }
@ -315,7 +312,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
branches = [...branches, ...remotebranches] branches = [...branches, ...remotebranches]
} }
console.log('branches', branches)
return branches return branches
} catch (e) { } catch (e) {
return [] return []

Loading…
Cancel
Save