|
|
@ -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 [] |
|
|
|