microsoft / microsoft/vscode-remote-release
Dev Containers doubles the size of gitconfig when using shared HOME folder
Open
@chrmarti is already working on this.
Since Dec 24, 2024.
bug
containers
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 469
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
- VSCode Version: 1.96.0
- Local OS Version: 1.96.0
- Remote OS Version: rhel 8.6
Steps to Reproduce:
- Configure shared HOME folder with the following setting: "remoteEnv": { "HOME": "" }
- Use vscode to connect to the container, or reload vscode window
- Check the size of .gitconfig in the shared folder (
$HOME/.gitconfig), it should double its previous size
It's possible to avoid it by setting "dev.containers.copyGitConfig" to false.
However, if the destination .gitconfig file is the same as the source, dev container should not copy it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.