Skip to content

git-combine: add startup script that sets default branches for each remote

Administrator requested to merge git-combine-actually-fix into main

Created by: ggilmore

The gigarepo tracks 230 remotes. If any one of them changes the name of their default branch, git fetch will no longer work - causing the pod to go into a crash loop.

This PR adds a simple bash script that loops over all of the remotes and sets our local git configuration to point to the current name for their default branch. git-combine will run this script whenever the pod restarts.

Test plan

This is already running on dogfood.

Merge request reports

Loading