summaryrefslogtreecommitdiffstats
path: root/.devcontainer/devcontainer.json
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-11-13 03:00:58 +0000
committerJesse Duffield <jessedduffield@gmail.com>2022-11-13 03:00:58 +0000
commitea28529cbb4c462117c26de85254922d72365dda (patch)
tree249a34debeec4a53f82d8e27ea28ab304a941e5d /.devcontainer/devcontainer.json
parentdb592e1dc689c8790e91c8e075631eafaa0b1fe1 (diff)
set default branch in dev container for the sake of integration tests
Diffstat (limited to '.devcontainer/devcontainer.json')
-rw-r--r--.devcontainer/devcontainer.json5
1 files changed, 3 insertions, 2 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 3c8537052..73f37e3ec 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -60,8 +60,9 @@
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",
- // See https://www.kenmuse.com/blog/avoiding-dubious-ownership-in-dev-containers/
- "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
+ // See https://www.kenmuse.com/blog/avoiding-dubious-ownership-in-dev-containers/ for the safe.directory part
+ // The defaultBranch part is required for our deprecated integration tests.
+ "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && git config --global init.defaultBranch master",
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"