Permalink
Commits on May 22, 2012
  1. v3.03

    committed May 22, 2012
  2. MAJOR BUGFIX: disallow "hooks" directory in admin repo

    Although this is not a "hole" that allows a normal user to bypass
    controls, I still consider this a hole in the sense that I want to
    separate "admin push" rights from "shell access on server" rights.
    
    (I realise that most people don't make this distinction, but I do, and
    for me and most sites I consult for it is important).
    
    Thanks to drue on #gitolite who pointed it out excitedly, and apologies
    for killing what he thought of as a feature!
    committed May 22, 2012
  3. (fix bugly) info -ld should handle missing description files more gra…

    …cefully
    
    bugly = bug that makes the output ugly :)
    committed May 22, 2012
  4. fix repo alias to work when reponame has leading "/"

    as in git@host:repo.git works but ssh://git@host/repo.git doesn't
    committed May 22, 2012
  5. update g2 compat and migr info

    thanks to karihre on #gitolite for catching the first of the corrections
    (GL_GET_MEMBERSHIPS_PGM) and so reminding me...
    committed May 21, 2012
Commits on May 21, 2012
  1. (minor) single quotes around variables in error messages

    (plus a couple of other minor fixups)
    committed May 21, 2012
Commits on May 20, 2012
  1. v3.02

    committed May 20, 2012
Commits on May 19, 2012
  1. allow aliasing a repo to another name

    all documentation is inside Alias.pm.
    committed May 9, 2012
Commits on May 16, 2012
  1. simulate POST_CREATE for newly created "normal" repos

    See "background" in new program src/triggers/new-normal-repos
    committed May 14, 2012
  2. (collected docfixes)

    committed Apr 26, 2012
Commits on May 10, 2012
  1. just for kicks, a VREF that allows voting on changes to a branch

    (manually smoke tested; no test script)
    
    I've been meaning to do this for a while, since someone told me that is
    one of gerrit's features they like.
    
    Of course, gitolite can't/won't do the whole "code review" thing (nor
    the workflow enforcement that follows).
    
    But voting is simple -- literally 2-3 lines of code in a VREF.  (The
    rest is inline documentation).
    committed May 10, 2012
Commits on May 7, 2012
  1. the dupkeys function was already in ssh-authkeys...

    ...so there's no need for the VREF.
    
    Ironically, while I was arguing with Eli that I wouldn't do it and why,
    the code was *already* there, and had been for over a month!  (It must
    have been there for much longer for me to have forgotten!)
    
    TODO: convert from using fingerprint compute to actual key strings when
    the complaints about speed start appearing.
    
    My own personal speed up loop [1] I guess :)
    
    [1]: http://thedailywtf.com/Articles/Classic-WTF-The-Speedup-Loop.aspx
    committed May 6, 2012
Commits on May 6, 2012
  1. (minor fixup to t/info.t)

    committed May 6, 2012
  2. move repo/user validity check deeper

    (but change repo check to allow repoPATT instead of just repoNAME)
    
    This is because there are/will be some situations where access() is
    called without those two checks being done (i.e., it is not only from
    src/commands/access that it is called).
    committed May 6, 2012
Commits on May 5, 2012
  1. bugfix: smart http mode wasn't running pre_ and post_ git triggers

    (while we're about it, we also steal Michael Brown's idea (patch #2 in
    [1] and get rid of GIT_HTTP_BACKEND).
    
    [1]: http://groups.google.com/group/gitolite/msg/adfae758dd28f2a8
    committed May 5, 2012
Commits on May 4, 2012
  1. git-config bugfix + backward compat breakage in usage of 'config'

    (1) the backward compat breakage: you can't create empty-valued config
        keys anymore.  That is, you can't do the eqvt of the following shell
        command using gitolite
    
            git config foo.bar ""
    
    (2) fixed a bug where this:
    
            repo foo
                config foo.bar =
    
        when queried using
    
            gitolite git-config -r foo .
    
        would return even the empty valued ones, which -- remember! -- are
        not supposed to exist anymore.
    
        Fixing this bug allows situations like this to not show the admin
        repo in gitweb:
    
            repo [a-z].*
                config gitweb.owner = P-h B
    
            repo gitolite-admin
                config gitweb.owner =
    
    ----
    
    background...
    
    Somewhere in g3 (well actually in 057506b), we lost the ability to
    distinguish
        config foo.bar  =   ""
    from
        config foo.bar =
    
    I decided that conflating them is more intuitive for most people,
    because a survey [1] revealed that no one seemed to want the equivalent
    of the following shell command:
    
    ----
    
    [1] ...of a (small prime greater than 1) number of people on #git
    committed May 4, 2012
Commits on May 3, 2012
  1. migrated htpasswd command from g2.

    (with some fixups by committer)
    kaos committed with May 2, 2012
Commits on May 1, 2012
  1. minor fix to info command output under httpd...

    when running under httpd, $ENV{USER} is not set, so we use a (hopefully
    informative) default to print.
    
    Thanks to Thomas Hager (duke at sigsegv dot at) for catching this.
    committed May 1, 2012
  2. (minor typo fix)

    committed May 1, 2012
Commits on Apr 30, 2012
  1. allow VREF code to print to STDOUT...

    Using a g2-style "chained update hook" as a VREF doesn't *quite* work:
    
      - all STDOUT from the hook is lost
      - worse, all lines get parsed as a ref followed by a message, and if
        the ref doesn't look like a ref it dies
    
    So now we do all this only if the message starts with 'VREF/'.  Any
    other output is just printed out as is.
    committed Apr 30, 2012
Commits on Apr 29, 2012
  1. v3.01

    committed Apr 29, 2012
Commits on Apr 28, 2012
  1. Added instructions to make repositories available via http and ssh

    This patch adds instructions for configuring Gitolite and Apache 2.x
    to make repositories available to both ssh and http clients.
    
    [minor fixups by committer]
    Thomas Hager committed with Apr 20, 2012
  2. BSD compat changes

    thanks to milki for all the efforts!
    
    Details:
    
      - partial-copy fell afoul of BSD not having $RANDOM
      - test suite: fix bad GNU sort with good perl sort
      - test suite: fix md5sum dependency (which BSD doesn't have or can't
        easily have or requires extra options or whatever...), by doing it
        in perl.  (Requires Digest::MD5, which is probably available
        anyway, but since this is only for the test suite, meh!)
    committed Apr 28, 2012
  3. solaris doesn't like 'hostname -s'...

    (luckily, unlike linux, it doesn't spew a usage message to STDOUT!)
    committed Apr 28, 2012
Commits on Apr 27, 2012
  1. fix test suite's dependency on time zone

    I had not remembered that the 'tc' subcommand in tsh adds *text* that
    contains the current time, so commit SHAs were changing.
    
    Thanks to milki for catching this, and in fact being the only person who
    ever appears to have attempted to run the test suite at all!
    committed Apr 27, 2012
Commits on Apr 26, 2012
  1. add COPYING file

    (from http://www.gnu.org/licenses/gpl-2.0.txt)
    
    thanks to Jon Ciesla for catching this omission...
    committed Apr 26, 2012