Skip to content

Commit

Permalink
fix: use git submodule update --init --checkout
Browse files Browse the repository at this point in the history
This makes the checkout of the recorded moddable commit idempotent.
  • Loading branch information
michaelfig committed Feb 26, 2021
1 parent 58333e0 commit fd3965d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xsnap/src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function exec(command, cwd, args = []) {
}
await exec('git', 'moddable', ['checkout', moddableCommitHash]);
} else {
await exec('git', '.', ['submodule', 'update']);
await exec('git', '.', ['submodule', 'update', '--init', '--checkout']);
}

const pjson = readFileSync(`${__dirname}/../package.json`, 'utf-8');
Expand Down

0 comments on commit fd3965d

Please sign in to comment.