I'm using Git Mirror to synchronize repositories from GitHub to GitLab.
The following scenario will make the synchronization fail:
- Default branch is
master on both GitHub and GitLab
- Default branch change from
master to dev on GitHub
- Branch
master is deleted on GitHub
- Git Mirror execution
=> synchronization fail because branch master cannot be deleted from GitLab as it's the current default.
Only solution I can think of is that Git Mirror would need to be able to process this default branch information and synchronize it when it exists on both source and destination. I know that this default branch concept is not standard but it is at least available in GitHub and GitLab.
I'm using Git Mirror to synchronize repositories from GitHub to GitLab.
The following scenario will make the synchronization fail:
masteron both GitHub and GitLabmastertodevon GitHubmasteris deleted on GitHub=> synchronization fail because branch
mastercannot be deleted from GitLab as it's the current default.Only solution I can think of is that Git Mirror would need to be able to process this default branch information and synchronize it when it exists on both source and destination. I know that this default branch concept is not standard but it is at least available in GitHub and GitLab.