This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Author: ethomson (Edward Thomson) | |
# Gist: https://gist.github.com/ethomson/3e8e9cabf360917d52a689d57bcf1729 | |
# Article: https://edwardthomson.com/blog/mirroring_git_repositories.html | |
# | |
# TL;DR | |
# Hosting provider stores information about pull requests in special read-only references, | |
# which cause errors when you want to mirror a repository the Github way. |