Skip to content

Commit

Permalink
devctr: bind mount ~/.gitconfig
Browse files Browse the repository at this point in the history
To `/etc/gitconfig`, to have a working git config inside the container.
Hopefully this will be automatic in Positron at some point.
  • Loading branch information
gaborcsardi committed Oct 12, 2024
1 parent 96dcc1f commit 9a2ce57
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
"shutdownAction": "stopCompose",
// It is not mounted automatically if we use a compose file (?)
"mounts": [{
"source": "..",
"target": "/workspaces/${localWorkspaceFolderBasename}",
"type": "bind"
}],
"source": "..",
"target": "/workspaces/${localWorkspaceFolderBasename}",
"type": "bind"
}, {
"source": "~/.gitconfig",
"target": "/etc/gitconfig",
"type": "bind"
}
],
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
}

0 comments on commit 9a2ce57

Please sign in to comment.