post-update-hook (431B) - raw
1 #!/bin/sh 2 3 # uncomment this line to pack repository for dumb http protocol clone/fetch 4 # git update-server-info 5 6 # if repository is public, mirror to SourceHut and GitHub 7 if [ -f "git-daemon-export-ok" ] && [ -f "category" ]; then 8 # piping into at(1) as a workaround to let git connection finish before 9 # script has finished running 10 echo "$(dirname "$(realpath "$0")")/mirror-repository $(pwd)" | at now 2>/dev/null 11 fi