diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-09-18 16:37:38 -0300 |
---|---|---|
committer | Silvio Rhatto <user@example.org> | 2014-09-18 16:37:38 -0300 |
commit | 70beacc179ea415ea5db2a3bb7699c597709cb65 (patch) | |
tree | 0c7301fe71fd0e2c8d046c8ce40466b04bb8dc31 /gitolite-repo | |
download | utils-git-70beacc179ea415ea5db2a3bb7699c597709cb65.tar.gz utils-git-70beacc179ea415ea5db2a3bb7699c597709cb65.tar.bz2 |
Initial import
Diffstat (limited to 'gitolite-repo')
-rwxr-xr-x | gitolite-repo | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gitolite-repo b/gitolite-repo new file mode 100755 index 0000000..0911d13 --- /dev/null +++ b/gitolite-repo @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Format a new gitolite repository entry. +# + +# Parameters +BASENAME="`basename $0`" +REPO="$1" +OWNER="$2" + +# Syntax +if [ -z "$3" ]; then + echo "usage: $BASENAME <repo> <owner> <description>" + exit 1 +fi + +# Get description +shift 2 +DESC="$*" + +# Format entry +echo "$REPO \"$OWNER\" = \"$DESC\"" +echo "repo $REPO" +echo " R = @public" +echo " RW = @$OWNER" |