Skip to content

Extract more gitolite variables from gitolite query-rc #641

Open
@baby-gnu

Description

@baby-gnu

Hello,

Looking at the fix for #630, I saw that we may use the same for more variables.

Here is the output of gitolite query-rc -a:

ACCESS_1=ARRAY(0x1e7fc28)
COMMAND=ARRAY(0x1ec3210)
COMMANDS=HASH(0x1e7f340)
ENABLE=ARRAY(0x1eae8a8)
GIT_CONFIG_KEYS=gitweb\..* build.enable hooks\..* redminegitolite\..* multimailhook\..* http\..*
GL_ADMIN_BASE=/home/git/.gitolite
GL_BINDIR=/home/git/gitolite/src
GL_LIBDIR=/home/git/gitolite/src/lib
GL_LOGFILE=/home/git/.gitolite/logs/gitolite-2017-01.log
GL_REPO_BASE=/home/git/repositories
GL_TID=27613
LOCAL_CODE=/home/git/.gitolite/local
LOG_EXTRA=1
LOG_TEMPLATE=/home/git/.gitolite/logs/gitolite-%y-%m.log
POST_COMPILE=ARRAY(0x1ec3150)
POST_CREATE=ARRAY(0x1ec3198)
ROLES=HASH(0x1e7faf0)
UMASK=23

So, I think the two following settings can be queried:

  • Gitolite repositories base path with gitolite query-rc GL_REPO_BASE
  • Gitolite non-core hooks directory with gitolite query-rc LOCAL_CODE

Regards.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions