diff options
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" |