1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-21 17:57:00 +02:00

set default branch in dev container for the sake of integration tests

This commit is contained in:
Jesse Duffield 2022-11-13 03:00:58 +00:00
parent db592e1dc6
commit ea28529cbb

View File

@ -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"