diff --git a/doc/developer-notes.mkd b/doc/developer-notes.mkd index 408ac40..4807cfb 100644 --- a/doc/developer-notes.mkd +++ b/doc/developer-notes.mkd @@ -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 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?** diff --git a/doc/gitolite.rc.mkd b/doc/gitolite.rc.mkd index 36a8479..f42e9d7 100644 --- a/doc/gitolite.rc.mkd +++ b/doc/gitolite.rc.mkd @@ -88,6 +88,9 @@ things happen if you change them. blocks repo config settings. Please read [doc/big-config.mkd][bc] for 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 The nice value to run under. Applicable only if it is greater than 0. diff --git a/src/gl-dryrun b/src/gl-dryrun index 286c27e..2ebd198 100755 --- a/src/gl-dryrun +++ b/src/gl-dryrun @@ -66,7 +66,7 @@ $GL_ADMINDIR=$ENV{PWD} . "/.gitolite"; $GL_CONF="$GL_ADMINDIR/conf/gitolite.conf"; $GL_KEYDIR="$GL_ADMINDIR/keydir"; $GL_CONF_COMPILED="$GL_ADMINDIR/conf/gitolite.conf-compiled.pm"; -$GL_WILDREPOS = 0; +$GL_WILDREPOS = 1; $PROJECTS_LIST = $ENV{PWD} . "/projects.list"; $REPO_UMASK = 0077; $GL_BIG_CONFIG = 0; @@ -116,3 +116,4 @@ done | perl -ane ' cd .. echo +echo ...done diff --git a/src/gl-mirror-shell b/src/gl-mirror-shell index 6a0dfde..f326e18 100755 --- a/src/gl-mirror-shell +++ b/src/gl-mirror-shell @@ -24,7 +24,6 @@ use warnings; # ---------------------------------------------------------------------------- # this section of code snarfed from gl-auth-command -# XXX add this program to 'that bindir thing' in doc/developer-notes.mkd BEGIN { $0 =~ m|^(/)?(.*)/| and $ENV{GL_BINDIR} = ($1 || "$ENV{PWD}/") . $2; } diff --git a/src/sshkeys-lint b/src/sshkeys-lint index a149063..5e6d9a8 100755 --- a/src/sshkeys-lint +++ b/src/sshkeys-lint @@ -53,6 +53,8 @@ for my $pub (@pubkeys) { print <