fix(init-repo): create $HOME before git config on fresh volumes #55

Merged
cpfarhood merged 1 commits from fix/init-home-before-git-config into main 2026-03-19 03:28:50 +00:00

1 Commits

Author SHA1 Message Date
DevContainer User 70e74ab2d2 fix(init-repo): create $HOME before git config on fresh volumes
git config --global writes to $HOME/.gitconfig, but on a fresh PVC
$HOME (/config/userdata) doesn't exist yet. This causes the script to
fail with "could not lock config file" and exit due to set -e, leaving
the container in a crash loop with a black screen.

Move the mkdir -p $HOME + chown to the top of the script so it runs
before any git operations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 16:47:30 +00:00