This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
368 B

  1. #!/bin/sh
  2. runtime=$(TZ=UTC date +'%Y-%m-%dT%HZ')
  3. while read repourl name c; do
  4. baseref="gm/$runtime/$name"
  5. mkdir -p "gm/$name"
  6. git ls-remote "$repourl" > "gm/$name/${runtime}.refs.txt"
  7. #dr="--dry-run"
  8. git fetch $dr --no-tags "$repourl" +refs/tags/*:refs/tags/"$baseref/*" +refs/heads/*:refs/heads/"$baseref/*"
  9. done <<EOF
  10. $(python3 reponames.py < repos.txt)
  11. EOF