Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract more gitolite variables from gitolite query-rc #641

Open
baby-gnu opened this issue Jan 6, 2017 · 5 comments
Open

Extract more gitolite variables from gitolite query-rc #641

baby-gnu opened this issue Jan 6, 2017 · 5 comments

Comments

@baby-gnu
Copy link

baby-gnu commented Jan 6, 2017

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.

@OgreTransporter
Copy link

OgreTransporter commented Jan 30, 2017

2017-01-30 13:19:03 +0100 [ERROR] Can't retrieve Gitolite param : Non-zero exit code pid 9487 exit 1 for `sudo -n -u git -i gitolite query-rc LOCAL_CODE`

Maybe connected with #643

@baby-gnu
Copy link
Author

Which version of gitolite are you using ?

@baby-gnu
Copy link
Author

I wonder how gitolite behave when the LOCAL_CODE setting is not set in .gitolite.rc.

I think of two possibilities if this is the problem :

  1. Ask to set it in .gitolite.rc
  2. Provide a default with a warning that redmine_git_hosting hooks will not be executed when pushing over SSH

Regards.

@OgreTransporter
Copy link

Ok, found error. LOCAL_CODE is not set by default if you install gitolite by a package manager.

@n-rodriguez
Copy link
Contributor

Ok, found error. LOCAL_CODE is not set by default if you install gitolite by a package manager.

Neither if you install it from source.

@n-rodriguez n-rodriguez removed their assignment Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants