Skip to content

Commit

Permalink
rm logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bunsenstraat committed Sep 5, 2024
1 parent 3181e66 commit 34530fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
25 changes: 11 additions & 14 deletions apps/remixdesktop/src/plugins/isoGitPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async status(cmd: statusInput) {
console.log('status', cmd)

if (!this.workingDir || this.workingDir === '') {
throw new Error('No working directory')
}
Expand All @@ -80,14 +80,13 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
...(await this.getGitConfig()),
...cmd,
})
//console.log('STATUS', status, await this.getGitConfig())

return status
}

async log(cmd: logInputType) {
console.log('LOG', cmd)

const token = await this.call('config' as any, 'getAppParameter', 'settings/gist-access-token')
console.log('LOG', token)

if (this.workingDir === '') {
return []
Expand All @@ -98,7 +97,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
...cmd,
depth: cmd.depth || 10,
})
console.log('LOG')

return log
}

Expand Down Expand Up @@ -173,7 +172,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async resolveref(cmd: resolveRefInput) {
console.log('RESOLVE REF', cmd)

if (!this.workingDir || this.workingDir === '') {
return null
}
Expand All @@ -182,7 +181,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
...(await this.getGitConfig()),
...cmd,
})
console.log('RESOLVE REF', resolveref)

return resolveref
}

Expand All @@ -200,7 +199,6 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async checkout(cmd: checkoutInputType) {
console.log('CHECKOUT', cmd)

if (!this.workingDir || this.workingDir === '') {
throw new Error('No working directory')
Expand All @@ -217,7 +215,6 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async push(input: pushInputType) {
console.log('PUSH', input, this.gitIsInstalled)
if (!this.workingDir || this.workingDir === '') {
throw new Error('No working directory')
}
Expand All @@ -231,7 +228,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async pull(input: pullInputType) {
console.log('PULL', input)

if (!this.workingDir || this.workingDir === '') {
throw new Error('No working directory')
}
Expand All @@ -245,7 +242,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async fetch(input: fetchInputType) {
console.log('FETCH', input)

if (!this.workingDir || this.workingDir === '') {
throw new Error('No working directory')
}
Expand Down Expand Up @@ -298,7 +295,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async remotes() {
console.log('REMOTES')

if (!this.workingDir || this.workingDir === '') {
return []
}
Expand All @@ -307,7 +304,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async currentbranch(input: currentBranchInput) {
console.log('CURRENT BRANCH', input)

if (!this.workingDir || this.workingDir === '') {
return ''
}
Expand All @@ -316,7 +313,7 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
}

async branches(config: any) {
console.log('BRANCHES')

if (!this.workingDir || this.workingDir === '') {
return []
}
Expand Down
4 changes: 0 additions & 4 deletions libs/remix-git/src/isogit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import http from 'isomorphic-git/http/web'
import { Octokit } from "octokit"
import { ElectronBasePluginClient } from "@remixproject/plugin-electron"
const currentbranch = async (input: currentBranchInput, fsConfig: isoGitFSConfig) => {
console.log('CURRENT BRANCH', input)

try {
const cmd = input ? fsConfig ? { ...fsConfig, ...input } : input : fsConfig
Expand All @@ -31,8 +30,6 @@ const currentbranch = async (input: currentBranchInput, fsConfig: isoGitFSConfig
} catch (e) {
// do nothing
}
console.log('NAME', name)
console.log('REMOTE', remote)

return {
remote: remote,
Expand Down Expand Up @@ -201,7 +198,6 @@ const addIsomorphicGitProxyConfig = async (input: {
}, plugin: any) => {

const token = await plugin.call('config' as any, 'getAppParameter', 'settings/gist-access-token')
console.log('TOKEN', token)

let config: isoGitProxyConfig = {
corsProxy: 'https://corsproxy.remixproject.org/',
Expand Down

0 comments on commit 34530fb

Please sign in to comment.