pull/5370/head
bunsenstraat 1 year ago committed by yann300
parent a32c58a6a2
commit cae0209fe0
  1. 11
      apps/remix-ide/src/app/files/dgitProvider.js

@ -386,14 +386,23 @@ class DGitProvider extends Plugin {
ref: result[0]
})
await git.checkout({
...await this.getGitConfig(dir),
ref: result[0]
})
const log = await git.log({
...await this.getGitConfig(dir),
})
if(log[0].oid !== result[0]) {
this.call('terminal', 'log', {
type: 'error',
value: `Could not checkout submodule to ${result[0]}`
})} else {
this.call('terminal', 'logHtml',`Checked out submodule ${dir} to ${result[0]}`)
}
}
await this.updateSubmodules({
...input,

Loading…
Cancel
Save