Skip to content

updated: use configured remote instead of hardcoded origin#37720

Open
sshane wants to merge 1 commit intomasterfrom
fix-updated-remote
Open

updated: use configured remote instead of hardcoded origin#37720
sshane wants to merge 1 commit intomasterfrom
fix-updated-remote

Conversation

@sshane
Copy link
Copy Markdown
Contributor

@sshane sshane commented Mar 23, 2026

Resolves update failures on forks where the remote isn't named "origin". Gets the remote name from branch..remote git config, falling back to "origin" if not set. I.e. you check out a branch on deanlee's remote to test something, or your own fork while keeping origin there for upstream openpilot.

comma@comma-75246dcf:/data/openpilot$ cat /data/params/d/LastUpdateTime
2026-02-22T16:57:10.504308comma@comma-75246dcf:/data/openpilot$ 
comma@comma-75246dcf:/data/openpilot$ cat /data/params/d/UpdateFailedCount
26comma@comma-75246dcf:/data/openpilot$ 

comma@comma-75246dcf:/data/openpilot$ git remote
origin
sshane
comma@comma-75246dcf:/data/openpilot$ git config branch.brzpilot.remote
sshane
comma@comma-75246dcf:/data/openpilot$ git config branch.master.remote
origin

Resolves update failures on forks where the remote isn't named "origin".
Gets the remote name from branch.<name>.remote git config, falling back
to "origin" if not set.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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