[projects/git-slug: 113/170] Get rid off trash script without date component

glen glen at pld-linux.org
Mon Sep 21 21:48:18 CEST 2015


commit 9f2f28e11e9c8682a01aa2403b4557bb4ec1e062
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Mon Jun 25 08:17:41 2012 +0100

    Get rid off trash script without date component
    
    I have managed to have two version of trash script. The one which uses
    $ATTIC/`date` directory is the right one, so remove the other one.

 setup.py |  2 +-
 trash    | 27 ---------------------------
 2 files changed, 1 insertion(+), 28 deletions(-)
---
diff --git a/setup.py b/setup.py
index 5b3bf9a..976abb5 100644
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,6 @@ setup(name='git-core-slug',
       url='https://github.com/draenog/slug',
       classifiers=['Programming Language :: Python :: 3'],
       packages=['git_slug', 'Daemon'],
-      data_files=[('/home/services/gitolite/adc/bin', ['trash'])],
+      data_files=[('/home/services/gitolite/adc/bin', ['adc/trash'])],
       scripts=['slug.py', 'slug_watch']
      )
diff --git a/trash b/trash
deleted file mode 100755
index 7db4d6d..0000000
--- a/trash
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-. $(dirname $0)/adc.common-functions
-
-[ -z "$1" ] && die 'Error: Need a repo name'
-
-get_rights_and_owner gitolite-admin
-[ -z "$perm_write" ] && die "Error: You do not have permission to remove repositories"
-
-ATTIC=$HOME/Attic
-GL_REPO_BASE_ABS=$HOME/repositories
-WATCHDIR=$HOME/watchdir
-EMPTYSHA1='0000000000000000000000000000000000000000'
-
-repo=$GL_REPO_BASE_ABS/packages/$1.git
-
-[ -d $repo ] || die "Error: repository $repo does'nt exist"
-[ -d $ATTIC ] || die "Error: Directory $ATTIC does not exist"
-[ -e $ATTIC/`basename $repo` ] && die "Error: Directory $ATTIC/repo already exist"
-echo "Repository removed by $GL_USER" > $repo/.gitolite.down
-
-( echo $GL_USER
-  echo $1
-  GIT_DIR=$repo git for-each-ref  --format="%(objectname) $EMPTYSHA1 %(refname)" refs/heads/\*
-  ) > $WATCHDIR/$1.$$
-
-mv $repo $ATTIC
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5



More information about the pld-cvs-commit mailing list