Skip to content

git-export: Reset local content to remote content on fresh clones#1144

Merged
leplatrem merged 2 commits intomainfrom
fix-git-export-branches-2
Jan 21, 2026
Merged

git-export: Reset local content to remote content on fresh clones#1144
leplatrem merged 2 commits intomainfrom
fix-git-export-branches-2

Conversation

@leplatrem
Copy link
Contributor

In prod, from a fresh clone, the remote branches are not available as local references

  File "/app/commands/git_export.py", line 597, in update_bucket_branches
    branch_tip = repo.lookup_reference(branch_refname).target
                 ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'refs/heads/v1/buckets/main-preview'

@leplatrem leplatrem merged commit eadf850 into main Jan 21, 2026
11 checks passed
@leplatrem leplatrem deleted the fix-git-export-branches-2 branch January 21, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants