Yes, thanks, I see the config option and it attempts to clone while building the container. I have one more issue which I believe is a race condition with the copy of the .gitconfig from host to container related to this issue. I believe I need the copy of the .gitconfig to be placed in the container before cloning the dotfiles repo.
I get the following error:
2025-07-15 08:20:13.519 [info] [devcontainer up][stderr]: [2025-07-15T15:20:13.582Z] Start: Run in container: # Clone & install dotfiles via 'install.sh'
2025-07-15 08:20:13.520 [info] [devcontainer up][stderr]: [2025-07-15T15:20:13.586Z] Cloning into '/home/vadmin/dotfiles'...
2025-07-15 08:20:13.812 [info] [devcontainer up][stderr]: [2025-07-15T15:20:13.885Z] fatal: could not read Username for 'https://github.com': No such device or address
2025-07-15 08:20:13.817 [info] [devcontainer up][stderr]: [2025-07-15T15:20:13.891Z]
2025-07-15 08:20:13.817 [info] [devcontainer up][stderr]: [2025-07-15T15:20:13.891Z]
2025-07-15 08:20:13.818 [info] [devcontainer up][stderr]: [2025-07-15T15:20:13.891Z] Exit code 128
2025-07-15 08:20:13.818 [info] [devcontainer up][stderr]: [2025-07-15T15:20:13.891Z] Stop (411 ms): Run in container: # Clone & install dotfiles via 'install.sh'
In one of my repositories I can get the clone to work by adding
{
"source": "${localEnv:HOME}/.gitconfig",
"target": "/home/vadmin/.gitconfig",
"type": "bind"
},
but in other repositories it always fails with this error.