diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-15 16:18:19 -0400 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-15 16:18:19 -0400 |
| commit | a78560944934d7728ae8d2949a5201487c0e4867 (patch) | |
| tree | d035c1158bf39de04c7ed4e2e45744f6b2effde0 /clone-all-github | |
| parent | 794e1951e4817c812d5d1897b43df92b91fbd581 (diff) | |
add hooks to clones
Diffstat (limited to '')
| -rwxr-xr-x | clone-all-github | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
