Command to lock repo at Gitolite via SSH command. For detailed information see the command documentation.
To run the unit tests it is necessary to define an environment varibale where the Gitolite lib is found:
$> export GL_LIBDIR=/some/where/gitolite/src/lib
After that invoke prove(1) in the project's base directory:
$> prove -rvl
Or for convenience invoke the script ./test
(after changing the GL_LIBDIR
variable in the script):
$> ./test
This script will run prove continuously each second if you provide the switch
-w
.
$> ./test -w
Clone this repo into your site local location:
$> git clone git@github.com:Weltraumschaf/gitolite-lock-repo.git local
Add this location to your .gitolite.rc
:
# this one is managed directly on the server
LOCAL_CODE => "$ENV{HOME}/local",
And then add the update hook to the conf/gitolite.conf
:
repo @all
- VREF/lock-repo = @all
The example above activates the hook for all repos for everyone.
After you have done the installation you can invoke the command and show the complete documentation of it with:
$> ssh git@your.host.com lock-repo help