5 use lib
$ENV{GL_LIBDIR
};
8 use Gitolite
::Conf
::Load
;
9 use Gitolite
::Conf
::Store
;
12 create -- create a wild repo.
15 ssh git@host create <repo>
18 usage
() if @ARGV != 1 or $ARGV[0] eq '-h';
20 $ENV{GL_USER
} or _die
"GL_USER not set";
23 _die
"invalid repo '$repo'" unless $repo =~ $REPONAME_PATT;
25 my $ret = access
( $repo, $ENV{GL_USER
}, '^C', 'any' );
26 _die
"repo already exists or you are not authorised to create it" if $ret =~ /DENIED/;
28 new_wild_repo
( $repo, $ENV{GL_USER
}, 'create' );
29 gl_log
( 'create', $repo, $ENV{GL_USER
}, 'create' );