Syntax error fix
[girocco.git] / inactive
blob89e488e223e04c0861150dfdeb80c9a8a9f01c36
1 Checking for inactive projects (empty repositories)
3 for i in $(find . -name heads -type d); do [ "$(ls $i)" ] && continue; echo "${i%/refs/heads} $(cat $i/../../owner)"; done
4 while read x y; do echo -e 'Hello,\n\nI have removed your project '$x' from repo.or.cz since you have set it up quite some time ago and nothing has ever been pushed in. If you want to publish anything on repo.or.cz in the future, feel free to create the project again. If you experienced any technical difficulties with publishing on repo.or.cz, please let me know, hopefully we can solve them together. In case the automated check went wrong, the repository is still backed up...\n\nThanks for using repo.or.cz!\n\n\t\t\tPetr Baudis <pasky@suse.cz>' | mail -s '[repo.or.cz] Automated project removal' $y; done
6 for i in $(find . -name heads -type d); do [ "$(ls $i)" ] && continue; mv ${i%/refs/heads} /srv/git-recyclebin/; done