Skip to content

Commit 60937c6

Browse files
authored
Merge pull request coder#179 from codercom/anmol
Update docker oneliner and fix clone task
2 parents 8527d10 + 449d51d commit 60937c6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ RUN apt-get install -y locales && \
2929
# configured in /etc/default/locale so we need to set it manually.
3030
ENV LANG=en_US.UTF-8
3131
ENTRYPOINT code-server
32-
# Unfortunately `.` does not work with code-server so we use shell form.
33-
CMD code-server $PWD
32+
CMD ["."]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Try it out:
1111
```bash
12-
docker run -t -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth
12+
docker run -t -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

+4
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ const ensureClean = register("vscode:clean", async (runner) => {
241241
throw new Error(`Failed to remove unstaged files: ${removeUnstaged.stderr}`);
242242
}
243243
}
244+
const fetch = await runner.execute("git", ["fetch", "--prune"]);
245+
if (fetch.exitCode !== 0) {
246+
throw new Error(`Failed to fetch latest changes: ${fetch.stderr}`);
247+
}
244248
});
245249

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

0 commit comments

Comments
 (0)