From 8f1fd8481aaa338a02f5eb2f41dff4f8f1bc96fa Mon Sep 17 00:00:00 2001 From: Martin Erik Werner Date: Tue, 17 Dec 2013 13:11:38 +0100 Subject: [PATCH] D: Allow repo owners in addition to creator Modify the D command to allow owners, in additon to creators, unlocking/trashing/deleting the repo. This is similar to the change to the perms command in 797a81f. --- src/commands/D | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/D b/src/commands/D index 1a8c2b5..016a365 100755 --- a/src/commands/D +++ b/src/commands/D @@ -62,7 +62,7 @@ TRASH_SUFFIX=`gitolite query-rc TRASH_SUFFIX`; tsuf=`date +%Y-%m-%d_%H:%M:%S`; # ---------------------------------------------------------------------- owner_or_die() { - gitolite creator "$repo" $GL_USER || die You are not authorised + gitolite owns "$repo" || die You are not authorised } # ---------------------------------------------------------------------- -- 2.11.4.GIT