ADC "rmrepo" replaced by "rm" and "trash", with helper ADCs

helpers for 'rm': lock, unlock
helpers for 'trash': list-trash, undelete

common functions updated with local settings for ADCs as well
This commit is contained in:
Sitaram Chamarty 2010-10-21 22:36:15 +05:30
parent a0aecbb012
commit cb0a9bdb0c
10 changed files with 204 additions and 17 deletions

View file

@ -1,17 +1,4 @@
#!/bin/sh
#!/bin/bash
. $(dirname $0)/adc.common-functions
delete=$1
get_rights_and_owner $delete
[ "$owner" = "$GL_USER" ] || die "$delete is not yours to delete!"
cd $GL_REPO_BASE_ABS
rm -rf $delete.git
cd $HOME
PROJECTS_LIST=$(perl -e 'do ".gitolite.rc"; print $PROJECTS_LIST')
export delete
perl -ni -e 'print unless /^\Q$ENV{delete}.git\E$/' $PROJECTS_LIST
echo this command has been superceded by the \"rm\" and \"trash\" commands
exit 1