From a78560944934d7728ae8d2949a5201487c0e4867 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Wed, 15 Oct 2025 16:18:19 -0400 Subject: add hooks to clones --- clone-all-github | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clone-all-github') diff --git a/clone-all-github b/clone-all-github index 739f8db..2615516 100755 --- a/clone-all-github +++ b/clone-all-github @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -xe + USER=compromyse REPOS=$(curl https://api.github.com/users/$USER/repos 2>/dev/null) @@ -22,6 +24,8 @@ for i in $(seq 0 1 $(( $(echo $REPOS | jq length) - 1 ))); do done echo "$description" > description + echo 'git push github -f --mirror' > "hooks/post-receive" + chmod +x "hooks/post-receive" popd > /dev/null -- cgit v1.2.3