Skip to content

Commit 306192e

Browse files
authored
Disable git (#1047)
1 parent 79c09b7 commit 306192e

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

apps/remix-ide-e2e/src/tests/remixd.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = {
7373
.testContracts('test_import_node_modules_with_github_import.sol', sources[4]['test_import_node_modules_with_github_import.sol'], ['ERC20', 'test11'])
7474
},
7575

76-
'Run git status': function (browser) {
76+
'Run git status': '' + function (browser) {
7777
browser
7878
.executeScript('git status')
7979
.pause(3000)

apps/remix-ide/src/app/files/remixd-handle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class RemixdHandle extends WebsocketPlugin {
3838

3939
deactivate () {
4040
if (super.socket) super.deactivate()
41-
this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
41+
// this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
4242
this.locahostProvider.close((error) => {
4343
if (error) console.log(error)
4444
})
@@ -49,7 +49,7 @@ export class RemixdHandle extends WebsocketPlugin {
4949
}
5050

5151
async canceled () {
52-
await this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
52+
// await this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
5353
await this.appManager.deactivatePlugin('remixd')
5454
}
5555

@@ -81,7 +81,7 @@ export class RemixdHandle extends WebsocketPlugin {
8181
}
8282
}, 3000)
8383
this.locahostProvider.init(() => {})
84-
this.call('manager', 'activatePlugin', 'git')
84+
// this.call('manager', 'activatePlugin', 'git')
8585
}
8686
}
8787
if (this.locahostProvider.isConnected()) {

apps/remix-ide/src/app/panels/terminal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ class Terminal extends Plugin {
749749
try {
750750
let result
751751
if (script.trim().startsWith('git')) {
752-
result = await this.call('git', 'execute', script)
752+
// result = await this.call('git', 'execute', script)
753753
} else {
754754
result = await this.call('scriptRunner', 'execute', script)
755755
}

libs/remixd/src/bin/remixd.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ function startService<S extends 'git' | 'folder'> (service: S, callback: (ws: WS
5959
sharedFolderClient.setupNotifications(program.sharedFolder)
6060
sharedFolderClient.sharedFolder(program.sharedFolder)
6161
})
62-
62+
/*
6363
startService('git', (ws: WS, sharedFolderClient: servicesList.Sharedfolder) => {
6464
sharedFolderClient.setWebSocket(ws)
6565
sharedFolderClient.sharedFolder(program.sharedFolder)
6666
})
67+
*/
6768
} catch (error) {
6869
throw new Error(error)
6970
}

0 commit comments

Comments
 (0)