5 use lib
$ENV{GL_LIBDIR
};
8 use Gitolite
::Conf
::Load
;
11 Usage: gitolite creator [-n] <reponame> [<username>]
13 Print the creator name for the repo. A '-n' suppresses the newline.
15 When an optional username is supplied, it checks if the user is the creator of
16 the repo and returns an exit code (shell truth, 0 for success) instead of
17 printing anything, which makes it possible to do this in shell:
19 if gitolite creator someRepo someUser
24 usage
() if not @ARGV or $ARGV[0] eq '-h';
26 if ( $ARGV[0] eq '-n' ) {
31 my $user = shift || '';
34 $creator = creator
($repo) if not repo_missing
($repo);
36 exit 0 if $creator eq $user;
39 return ( $creator eq $user ) if $user;