pushed files are left in $GL_ADMIN_BASE directory

17 views
Skip to first unread message

Stefan Beckers

unread,
Jun 10, 2020, 9:17:47 PM6/10/20
to gitolite
Hello,

I am running a gitolite 3.6.7-2 (Ununtu Package) on Ubuntu 18.04.4.

Every time a developer pushes, no matter what repository (except for "gitolite-admin.git"!), the files and directories pushed, will end up (and stay) in $GL_ADMIN_BASE directory. This is really ugly, as this e.g. enables users to overwrite configuration.

This server is a mirror-master.

* all pushing and pulling works fine for everybody,
* administration works and mirroring also works,
* no unusual messages in the gitolite log
* no unusual messages in the output of the pushing client.

I do not use any custom hooks, except for one repo (repo-specific). But also deactivating the custom hook does not change the behaviour. Interestingly, the mirror does not show this behaviour. (same OS version and gitolite version)

I've searching for quite some time now, fiddling around  and am running out of ideas. I really would appreciate any advice on this. E.g. how can I increase verbosity of gitolite?

If more information is required, please let me know.

Best wishes

Stefan

Sitaram Chamarty

unread,
Jun 10, 2020, 10:04:24 PM6/10/20
to Stefan Beckers, gitolite
The only thing that occurs to me is that the post-update hook,
which is supposed to trigger ONLY for the admin repo, somehow
got added to all the other repos also.

What does "ls -al" in the hooks directory of one of the faulting
repos tell you?

Sitaram Chamarty

unread,
Jun 11, 2020, 3:16:18 AM6/11/20
to Stefan Beckers, gitolite
I just tested it; the behaviour you describe does indeed happen
if you add the post-update hook -- which is supposed to be used
**only** for the admin repo -- to other repos.

However, as far as I can tell there is nothing in gitolite that
does that so I am puzzled.

Stefan Beckers

unread,
Jun 15, 2020, 11:03:05 AM6/15/20
to gitolite
Hello,

Thank you for the prompt response! I had a few days off but will look into this today.

Best wishes

Stefan

Stefan Beckers

unread,
Jun 15, 2020, 11:32:19 AM6/15/20
to gitolite
You were perfectly right: all repository had post-update hooks linked to ".gitolite/hooks/gitolite-admin/post-update". For whatever reason...

Solution:
* Deleted all of these, except for the "gitolite-admin.git" repo.
* Fixed the deleted links
** become gitolite user  "su gitolite"
** "cd"
*** gitolite compile
*** gitolite setup --hooks-only
*** gitolite trigger POST_COMPILE

Now pushes do not pollute the $GL_ADMIN_BASE directory anymore.

Thank you very much for the superb support!

Sincerely

Stefan

Sitaram Chamarty

unread,
Jun 16, 2020, 11:04:56 AM6/16/20
to Stefan Beckers, gitolite
You're welcome.

And if you ever figure out how that hook went to all the repos,
*and* if it's OK to share, please do. Just as a matter of
curiosity.

regards
sitaram

Stefan Beckers

unread,
Jun 18, 2020, 8:05:50 AM6/18/20
to gitolite
Hello Sitaram,

unfortunately no chance to find out. Too many admins have been "stiring in this pot" over time...

Regards

Stefan
Reply all
Reply to author
Forward
0 new messages