/usr/share/gitolite3/commands/owns is in gitolite3 3.6.7-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/usr/bin/perl
use strict;
use warnings;
use lib $ENV{GL_LIBDIR};
use Gitolite::Easy;
=for usage
Usage: gitolite owns <reponame>
Checks if $GL_USER is an owner of the repo and returns an exit code (shell
truth, 0 for success), which makes it possible to do this in shell:
if gitolite owns someRepo
then
...
=cut
usage() if not @ARGV or $ARGV[0] eq '-h';
my $repo = shift;
exit not owns($repo);
|