5
use lib $ENV{GL_LIBDIR};
10
Usage: ssh git@host help # via ssh
11
gitolite help # directly on server command line
13
Prints a list of custom commands available at this gitolite installation.
15
Each command has its own help, accessed by passing it '-h' again.
20
my $user = $ENV{GL_USER} || '';
21
print "hello" . ( $user ? " $user" : "" ) . ", this is gitolite3 " . version() . " on git " . substr( `git --version`, 12 ) . "\n";
23
print "list of " . ( $user ? "remote" : "gitolite" ) . " commands available:\n\n";
25
my %list = (list_x( $ENV{GL_BINDIR}), list_x($rc{LOCAL_CODE} || ''));
26
for (sort keys %list) {
27
print "\t$list{$_}" if $ENV{D};
28
print "\t$_\n" if not $user or $rc{COMMANDS}{$_};
35
# ------------------------------------------------------------------------------
39
return unless -d "$d/commands";
41
return map { $_ => $d } grep { -x $_ } map { chomp; s(^./)(); $_ } `find . -type f -o -type l|sort`;