Skip to content

Commit

Permalink
set default branch in dev container for the sake of integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Nov 13, 2022
1 parent db592e1 commit ea28529
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ea28529

Please sign in to comment.