Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c8c45a5

Browse files
committedMar 9, 2019
Update docker oneliner and fix clone task
1 parent 76e0338 commit c8c45a5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Try it out:
1111
```bash
12-
docker run -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth
12+
docker run -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server--allow-http --no-auth
1313
```
1414

1515
- Code on your Chromebook, tablet, and laptop with a consistent dev environment.

‎build/tasks.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ const ensureCloned = register("vscode:clone", async (runner) => {
226226
}
227227

228228
runner.cwd = vscodePath;
229-
const checkout = await runner.execute("git", ["checkout", "tags/1.32.0"]);
229+
const checkout = await runner.execute("git", ["checkout", "1.32.0"]);
230230
if (checkout.exitCode !== 0) {
231231
throw new Error(`Failed to checkout: ${checkout.stderr}`);
232232
}
@@ -246,6 +246,10 @@ const ensureClean = register("vscode:clean", async (runner) => {
246246
throw new Error(`Failed to remove unstaged files: ${removeUnstaged.stderr}`);
247247
}
248248
}
249+
const fetch = await runner.execute("git", ["fetch", "--prune"]);
250+
if (fetch.exitCode !== 0) {
251+
throw new Error(`Failed to fetch latest changes: ${fetch.stderr}`);
252+
}
249253
});
250254

251255
const ensurePatched = register("vscode:patch", async (runner) => {

0 commit comments

Comments
 (0)
Please sign in to comment.