5 use lib
$ENV{GL_LIBDIR
};
8 # gitolite VREF to lock and unlock (binary) files. Requires companion command
9 # 'lock' to be enabled; see doc/locking.mkd for details.
11 # ----------------------------------------------------------------------
13 # see gitolite docs for what the first 7 arguments mean
15 die "not meant to be run manually" unless $ARGV[6];
17 my $ff = "$ENV{GL_REPO_BASE}/$ENV{GL_REPO}.git/gl-locks";
23 _die
"do '$ff' failed with '$@', contact your administrator" if $@
;
25 my ( $oldtree, $newtree, $refex ) = @ARGV[ 3, 4, 6 ];
27 for my $file (`git diff --name-only $oldtree $newtree`) {
30 if ( $locks{$file} and $locks{$file}{USER
} ne $ENV{GL_USER
} ) {
31 print "$refex '$file' locked by '$locks{$file}{USER}'";