Skip to content

icon-Systemhaus-GmbH/gitolite-lock-repo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitolite-lock-repo

Command to lock repo at Gitolite via SSH command. For detailed information see the command documentation.

Testing

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

Installation

Clone this repo into your site local location:

$> git clone [email protected]: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.

Usage

After you have done the installation you can invoke the command and show the complete documentation of it with:

$> ssh [email protected] lock-repo help

About

Command to lock repo via SSH command.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 99.6%
  • Shell 0.4%