check-large-stagit (483B)
1 #!/bin/bash 2 3 # find index.html files from stagit that have probably gone too large 4 # meant to be run on a3nm.net server 5 6 # if this happens (cause not identified for now), the fix is to do: 7 # rm ~/public_html/git/$REPOS/.htmlcache 8 # then rewind the affected git repo 9 # (source https://stackoverflow.com/a/53676442) 10 # cd ~/git/$REPOS.git 11 # git update-ref refs/heads/master 'HEAD^' 12 # then git push again, which will rerun the hook 13 14 ls -lh ~/public_html/git/*/index.html | grep M 15