OpenStackGitHubCacheMirror

22nd June 2017 at 10:06am
Git GitHub jq OpenStack OpenStackJsonParsing
while read -r repo_name clone_url
do
  git clone --mirror "$clone_url" "/${repo_name%.git}.git"
done < <(curl -sk
  "https://api.github.com/orgs/openstack/repos?per_page=5000" \
    | jq -r -c '.[] | .full_name+" "+.clone_url')