From dc12605360fc585d3ba4c3bd567d3a3642e3ba72 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 30 Mar 2007 03:15:45 +0200 Subject: [PATCH] Shell gadgetry for finding out empty repositories --- inactive | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 inactive diff --git a/inactive b/inactive new file mode 100644 index 0000000..89e488e --- /dev/null +++ b/inactive @@ -0,0 +1,6 @@ +Checking for inactive projects (empty repositories) + +for i in $(find . -name heads -type d); do [ "$(ls $i)" ] && continue; echo "${i%/refs/heads} $(cat $i/../../owner)"; done +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 ' | mail -s '[repo.or.cz] Automated project removal' $y; done + +for i in $(find . -name heads -type d); do [ "$(ls $i)" ] && continue; mv ${i%/refs/heads} /srv/git-recyclebin/; done -- 2.11.4.GIT