Hey, this is a known issue. We’ve seen it reported before in this thread with the exact same error. The extension team looked into it, but they can’t reproduce it consistently.
A couple of questions to help narrow this down:
- Can you share the exact Cursor version? (Help > About Cursor > Copy)
- Are you attaching to a local Docker container directly, or are you going through Remote SSH first?
One workaround that sometimes helps is to make sure ~/.gitconfig exists on the host machine where Docker is running:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
If that’s already set up, try checking that the HOME environment variable is set correctly:
echo $HOME
If it returns empty or something unexpected, that would explain why the path resolves to undefined.
Let me know the version details and I’ll follow up.