From 8ae9a78003dd1596e961615e5991892284c3fbe3 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 9 Jul 2008 14:45:07 +0200 Subject: [PATCH] inactive: Remove projects from /etc/group, ignore fork bases --- inactive | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inactive b/inactive index 9cdd52d..c807c49 100644 --- a/inactive +++ b/inactive @@ -1,8 +1,10 @@ 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 >sack +for i in $(find . -name heads -type d); do [ "$(ls $i)" ] && continue; fb="${i##*/}"; fb="${fb%.git}"; [ -d "$i/../../../$fb" ] && continue; [ -e "$i/../../packed-refs" ] && continue; echo "${i%/refs/heads} $(cat $i/../../owner)"; done >sack 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 (I run this job once in few months). 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 (sometimes I don't reply for some time, in that case it's best to harass me again, and repeatedly ;-). 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 ghost("'$j'", 0)->_group_remove()'; done -- 2.11.4.GIT