Skip to content

Add diagnostic logging and HOME env for git fetch#57

Merged
jonathonbyrdziak merged 1 commit intomasterfrom
fix/git-pull-home-env
Mar 21, 2026
Merged

Add diagnostic logging and HOME env for git fetch#57
jonathonbyrdziak merged 1 commit intomasterfrom
fix/git-pull-home-env

Conversation

@jonathonbyrdziak
Copy link
Copy Markdown
Contributor

Summary

  • Logs HOME, credential.helper, git-credentials status, and remote URL before git:pull runs — so when it hangs, the log file shows exactly why
  • Explicitly passes HOME env var in git fetch command since PHP exec() may not inherit it, preventing git from finding ~/.gitconfig credential helper
  • Uses escapeshellarg() for repo_dir in fetch command

Test plan

  • Run protocol start — check /var/log/protocol/protocol-start.log shows HOME, credential.helper, and remote URL before git:pull
  • If git:pull hangs, the log now shows the environment state at the point of hang

🤖 Generated with Claude Code

- Log HOME, credential.helper, git-credentials existence, and remote URL
  before running git:pull so hangs can be diagnosed from logs
- Pass HOME env var explicitly in git fetch command since PHP exec() may
  not inherit it, preventing git from finding ~/.gitconfig credential helper

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonathonbyrdziak jonathonbyrdziak merged commit f3c30a9 into master Mar 21, 2026
6 of 8 checks passed
@jonathonbyrdziak jonathonbyrdziak deleted the fix/git-pull-home-env branch March 21, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant