summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2013-03-03 18:33:43 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2013-03-03 18:33:50 +0530
commitc7705464e33fafee5d8d36787a4d9140b74188d9 (patch)
treed846ffcb21cf5bb10e7b8dfc05e014966ddf22e5
parentrc file format change (please read below) (diff)
downloadgitolite-gentoo-c7705464e33fafee5d8d36787a4d9140b74188d9.tar.gz
gitolite-gentoo-c7705464e33fafee5d8d36787a4d9140b74188d9.tar.bz2
gitolite-gentoo-c7705464e33fafee5d8d36787a4d9140b74188d9.zip
rc file format change: some inline doc/help text fixups
-rwxr-xr-xsrc/commands/htpasswd2
-rwxr-xr-xsrc/commands/rsync2
-rw-r--r--src/lib/Gitolite/Triggers/AutoCreate.pm10
-rw-r--r--src/lib/Gitolite/Triggers/Shell.pm3
-rw-r--r--src/syntactic-sugar/macros4
-rwxr-xr-xsrc/triggers/post-compile/ssh-authkeys-split4
-rwxr-xr-xsrc/triggers/post-compile/update-description-file6
-rwxr-xr-xsrc/triggers/upstream2
8 files changed, 16 insertions, 17 deletions
diff --git a/src/commands/htpasswd b/src/commands/htpasswd
index 3571cf1..fc468d0 100755
--- a/src/commands/htpasswd
+++ b/src/commands/htpasswd
@@ -14,7 +14,7 @@ Sets your htpasswd, assuming your admin has enabled it.
(Admins: You need to add HTPASSWD_FILE to the rc file, pointing to an
existing, writable, but possibly an initially empty, file, as well as adding
-an entry for 'htpasswd' to the COMMANDS hash).
+'htpasswd' to the ENABLE list).
=cut
# usage and sanity checks
diff --git a/src/commands/rsync b/src/commands/rsync
index 87fb046..46ec167 100755
--- a/src/commands/rsync
+++ b/src/commands/rsync
@@ -26,7 +26,7 @@ BUNDLE SUPPORT
that was then either deleted or rewound in the repo. This is checked
on every invocation.
- (2) Add 'rsync' to the COMMANDS list in the rc file
+ (2) Add 'rsync' to the ENABLE list in the rc file
GENERIC RSYNC SUPPORT
diff --git a/src/lib/Gitolite/Triggers/AutoCreate.pm b/src/lib/Gitolite/Triggers/AutoCreate.pm
index 8fe46d7..e1d977a 100644
--- a/src/lib/Gitolite/Triggers/AutoCreate.pm
+++ b/src/lib/Gitolite/Triggers/AutoCreate.pm
@@ -6,16 +6,16 @@ use warnings;
# perl trigger set for stuff to do with auto-creating repos
# ----------------------------------------------------------------------
-# to deny auto-create on read access, add 'AutoCreate::deny_R' to the
-# PRE_CREATE trigger list
+# to deny auto-create on read access, uncomment 'no-create-on-read' in the
+# ENABLE list in the rc file
sub deny_R {
die "autocreate denied\n" if $_[3] and $_[3] eq 'R';
return;
}
-# to deny auto-create on read *and* write access, add 'AutoCreate::deny_RW' to
-# the PRE_CREATE trigger list. This means you can only create repos using the
-# 'create' command, (which needs to be enabled in the COMMANDS list).
+# to deny auto-create on read *and* write, uncomment 'no-auto-create' in the
+# ENABLE list in the rc file. This means you can only create wild repos using
+# the 'create' command, (which needs to be enabled in the ENABLE list).
sub deny_RW {
die "autocreate denied\n" if $_[3] and ( $_[3] eq 'R' or $_[3] eq 'W' );
return;
diff --git a/src/lib/Gitolite/Triggers/Shell.pm b/src/lib/Gitolite/Triggers/Shell.pm
index b6e24c3..a2c5c0d 100644
--- a/src/lib/Gitolite/Triggers/Shell.pm
+++ b/src/lib/Gitolite/Triggers/Shell.pm
@@ -1,7 +1,6 @@
package Gitolite::Triggers::Shell;
-# usage notes: this module must be loaded first in the INPUT trigger list. Or
-# at least before Mirroring::input anyway.
+# usage notes: uncomment 'Shell' in the ENABLE list in the rc file.
# documentation is in the ssh troubleshooting and tips document, under the
# section "giving shell access to gitolite users"
diff --git a/src/syntactic-sugar/macros b/src/syntactic-sugar/macros
index 2dbb5fd..37a4b22 100644
--- a/src/syntactic-sugar/macros
+++ b/src/syntactic-sugar/macros
@@ -36,9 +36,9 @@ Documentation is mostly by example.
Setup:
- * the line
+ * uncomment the line
'macros',
- should be added to the SYNTACTIC_SUGAR list in ~/.gitolite.rc
+ in the ENABLE list in ~/.gitolite.rc
Notes on macro definition:
diff --git a/src/triggers/post-compile/ssh-authkeys-split b/src/triggers/post-compile/ssh-authkeys-split
index b6b0e15..e538fff 100755
--- a/src/triggers/post-compile/ssh-authkeys-split
+++ b/src/triggers/post-compile/ssh-authkeys-split
@@ -27,8 +27,8 @@
# USAGE
# -----
#
-# add it to the POST_COMPILE trigger list in the rc file, but *before* the
-# ssh-authkeys program entry.
+# to enable, uncomment the 'ssh-authkeys-split' line in the ENABLE list in the
+# rc file.
cd $GL_ADMIN_BASE/keydir
diff --git a/src/triggers/post-compile/update-description-file b/src/triggers/post-compile/update-description-file
index f8c2bd6..06cbc58 100755
--- a/src/triggers/post-compile/update-description-file
+++ b/src/triggers/post-compile/update-description-file
@@ -5,9 +5,9 @@
# just goes with the flow of setting config variables; nothing special needs
# to be done for the description.
-# But this only works for gitweb, not for cgit. Cgit users must therefore add
-# this line to the POST_COMPILE list in the rc file:
-# 'post-compile/update-description-file',
+# But this only works for gitweb, not for cgit. Cgit users must uncomment the
+# 'cgit' line in the ENABLE list in the rc file (which has the effect of
+# adding this program to the POST_COMPILE trigger list).
cd $GL_REPO_BASE
gitolite list-phy-repos | gitolite git-config % gitweb.description |
diff --git a/src/triggers/upstream b/src/triggers/upstream
index c8e8c6d..c64e2f2 100755
--- a/src/triggers/upstream
+++ b/src/triggers/upstream
@@ -25,7 +25,7 @@ git fetch -q "$url" '+refs/*:refs/*'
# INSTRUCTIONS:
#
-# * add 'upstream' to the PRE_GIT trigger list in the rc file.
+# * uncomment 'upstream' in the ENABLE list in the rc file.
# * add option lines to conf file. For example:
#
# repo git