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
cpfarhood commented 2026-03-11 16:54:39 +00:00 (Migrated from github.com)

Summary

  • git config --global writes to $HOME/.gitconfig, but on a fresh PVC $HOME (/config/userdata) doesn't exist yet
  • This causes init-repo to fail with "could not lock config file" and crash-loop due to set -e, resulting in a black screen
  • Moved mkdir -p $HOME + chown to the top of the script before any git operations

Test plan

  • Deploy a devcontainer with a fresh PVC (delete existing PVC first)
  • Verify the container starts without crash-looping
  • Verify git config is written correctly
  • Verify repos are cloned and VSCode launches

🤖 Generated with Claude Code

## Summary - `git config --global` writes to `$HOME/.gitconfig`, but on a fresh PVC `$HOME` (`/config/userdata`) doesn't exist yet - This causes `init-repo` to fail with "could not lock config file" and crash-loop due to `set -e`, resulting in a black screen - Moved `mkdir -p $HOME` + `chown` to the top of the script before any git operations ## Test plan - [ ] Deploy a devcontainer with a fresh PVC (delete existing PVC first) - [ ] Verify the container starts without crash-looping - [ ] Verify git config is written correctly - [ ] Verify repos are cloned and VSCode launches 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.