aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/perms')
-rwxr-xr-xsrc/commands/perms6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commands/perms b/src/commands/perms
index 30984bf..66ae885 100755
--- a/src/commands/perms
+++ b/src/commands/perms
@@ -53,8 +53,10 @@ if ( $ARGV[0] eq '-c' ) {
_die "invalid repo '$repo'" unless $repo =~ $REPONAME_PATT;
if ( not -d "$rc{GL_REPO_BASE}/$repo.git" ) {
- my $ret = Gitolite::Conf::Load::access( $repo, $ENV{GL_USER}, '^C', 'any' );
- _die $generic_error if $ret =~ /DENIED/;
+ unless ($ENV{GL_BYPASS_CREATOR_CHECK}) {
+ my $ret = Gitolite::Conf::Load::access( $repo, $ENV{GL_USER}, '^C', 'any' );
+ _die $generic_error if $ret =~ /DENIED/;
+ }
require Gitolite::Conf::Store;
Gitolite::Conf::Store->import;