(next round of minor changes)

This commit is contained in:
Sitaram Chamarty 2011-09-30 04:16:39 +05:30
parent 5e3a051a95
commit 09f57beea6
5 changed files with 18 additions and 2 deletions

View file

@ -127,6 +127,17 @@ longer is `$HOME` of the 'git' user**. They keep it in
already be present in `/etc/gitolite/gitolite.rc` before doing any such already be present in `/etc/gitolite/gitolite.rc` before doing any such
installs. installs.
There are also some other "impedance mismatches" that may show up. For
example, the gl-setup triggered by detecting a change in `$data_version`
following an RPM update once caused problems. This auto-update is designed to
run on the next "hit" of any kind (which arguably makes things very easy in
normal installations), but in Fedora's case it also means it runs *as that
user*. Who may not have "write" access to `$GL_ADMINDIR`! So the compile
fails, and you now have new code trying to work with old format data.
The solution is to explicitly run a compile, from a properly privileged
userid, as soon as you do an RPM upgrade.
---- ----
# **Why v2?** # **Why v2?**

View file

@ -88,6 +88,9 @@ things happen if you change them.
blocks repo config settings. Please read [doc/big-config.mkd][bc] for blocks repo config settings. Please read [doc/big-config.mkd][bc] for
more details. more details.
**WARNING**: if your description files are maintained by some other means
than via the gitolite config file, make sure you set this variable to 1.
* `$GL_NICE_VALUE`, boolean, default undef * `$GL_NICE_VALUE`, boolean, default undef
The nice value to run under. Applicable only if it is greater than 0. The nice value to run under. Applicable only if it is greater than 0.

View file

@ -66,7 +66,7 @@ $GL_ADMINDIR=$ENV{PWD} . "/.gitolite";
$GL_CONF="$GL_ADMINDIR/conf/gitolite.conf"; $GL_CONF="$GL_ADMINDIR/conf/gitolite.conf";
$GL_KEYDIR="$GL_ADMINDIR/keydir"; $GL_KEYDIR="$GL_ADMINDIR/keydir";
$GL_CONF_COMPILED="$GL_ADMINDIR/conf/gitolite.conf-compiled.pm"; $GL_CONF_COMPILED="$GL_ADMINDIR/conf/gitolite.conf-compiled.pm";
$GL_WILDREPOS = 0; $GL_WILDREPOS = 1;
$PROJECTS_LIST = $ENV{PWD} . "/projects.list"; $PROJECTS_LIST = $ENV{PWD} . "/projects.list";
$REPO_UMASK = 0077; $REPO_UMASK = 0077;
$GL_BIG_CONFIG = 0; $GL_BIG_CONFIG = 0;
@ -116,3 +116,4 @@ done | perl -ane '
cd .. cd ..
echo echo
echo ...done

View file

@ -24,7 +24,6 @@ use warnings;
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# this section of code snarfed from gl-auth-command # this section of code snarfed from gl-auth-command
# XXX add this program to 'that bindir thing' in doc/developer-notes.mkd
BEGIN { BEGIN {
$0 =~ m|^(/)?(.*)/| and $ENV{GL_BINDIR} = ($1 || "$ENV{PWD}/") . $2; $0 =~ m|^(/)?(.*)/| and $ENV{GL_BINDIR} = ($1 || "$ENV{PWD}/") . $2;
} }

View file

@ -53,6 +53,8 @@ for my $pub (@pubkeys) {
print <<INFO; print <<INFO;
====
Git operations using a pubkey that gets you a command line will BYPASS Git operations using a pubkey that gets you a command line will BYPASS
gitolite completely. This means: gitolite completely. This means: