From: alex Date: Sun, 15 Dec 2024 04:03:37 +0000 (-0800) Subject: updated using git-extra X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=066251c9bb5e256ec49b24df4958316b7a838956;p=mirror-all updated using git-extra --- diff --git a/todo b/todo index 868d594..adf8189 100644 --- a/todo +++ b/todo @@ -1,34 +1,4 @@ To Do: --create script/program - -args: [server, directory] - -check if directory is a git repo - -git -C [TARGET] rev-parse - -pull all repos - -mirror all new repos - -fetch all others - -this will serve as backups of ia.org - -cat > /repos/fetch.sh << EOF -#!/usr/bin/env bash - -set -euo pipefail - -REPOS=(\$(cat ~/.repos)) -for REPO in "\${REPOS[@]}"; do - if [[ ! -d "\$REPO" ]]; then - git clone --mirror "$REMOTE\$REPO" \$REPO - echo "\$REPO" > "/repos/\$REPO/description" - cd "\$REPO" - git update-server-info - cd .. - else - cd "\$REPO" - git fetch --prune --prune-tags - git update-server-info - cd .. - fi -done -EOF - +*build -tests -copy lots from git-extra