Browse Source

grab and store the ls-remote output.. disable dry-run..

remotes/origin/main
John-Mark Gurney 2 years ago
parent
commit
3b48fe236c
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      doupdate.sh

+ 4
- 1
doupdate.sh View File

@@ -4,7 +4,10 @@ runtime=$(TZ=UTC date +'%Y-%m-%dT%HZ')

while read repourl name c; do
baseref="gm/$runtime/$name"
git fetch --dry-run --no-tags "$repourl" +refs/tags/*:refs/tags/"$baseref/*" +refs/heads/*:refs/heads/"$baseref/*"
mkdir -p "gm/$name"
git ls-remote "$repourl" > "gm/$name/${runtime}.refs.txt"
#dr="--dry-run"
git fetch $dr --no-tags "$repourl" +refs/tags/*:refs/tags/"$baseref/*" +refs/heads/*:refs/heads/"$baseref/*"
done <<EOF
$(python3 reponames.py < repos.txt)
EOF

Loading…
Cancel
Save