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

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

Loading…
Cancel
Save