aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * VREF/NAME needs special handling in expand-deny-messagesSitaram Chamarty2018-07-221-4/+8
| |
| * 'info' learns '-p' option to show only physical reposSitaram Chamarty2018-07-221-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While we were meaninglessly debating (on the mailing list) the merits of showing the wild repo regexes to a *human*, someone came up with a reasonable need for an option to *not* show them so that certain automated tasks can be a wee bit simpler. Note that I still think the regexes *should* be shown to the user by default; we're just adding an option to explicitly suppress them. 15:31:59 <hiroki> sitaram: Thanks ! The most common use case would be for a sanity check script running on slaves that will check what repositories it has locally, and compare it with the output of info to their master. That way they can be certain all repositories are synced over properly. Second step would be to check all commit hashes of all repositories locally and their respective master.
| * autoflush stdout...Sitaram Chamarty2018-07-192-0/+4
| | | | | | | | | | ...to see stdout correctly (vis-a-vis stderr) in update hook and expand-deny-messages
* | Merge tag 'v3.6.8'gitolite-gentoo-3.6.8Robin H. Johnson2020-06-1630-103/+1861
|\| | | | | | | v3.6.8
| * v3.6.8v3.6.8Sitaram Chamarty2018-07-121-0/+11
| |
| * fix typo in documentation within VREF codeSitaram Chamarty2018-07-121-2/+2
| |
| * Reduce disk writes in post-compile triggersKonstantin Ryabitsev2018-04-162-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have a system with thousands of repositories located on disks where: 1. write operations are much slower than read operations 2. IO is burstable but is throttled after a certain limit In such conditions, writing out 10-15 git config settings per each of the 15,000 repositories resulted in around 200,000 calls to git-config and 200,000 disk writes to 15,000 files on every gitolite-admin push, even if there were no changes to any git configs. With this change, we call git-config once to read the entirety of the git config for the repo, and issue writes only if there are changes to any of the settings. Similarly, we only touch git-daemon-export-ok if such file doesn't already exist to avoid another few thousand unnecessary writes. As a result, our gitolite-admin push times went from 10-12 minutes to 20 seconds. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
| * allow hard tabs in template dataSitaram Chamarty2018-04-051-0/+2
| |
| * fix bug when deleting ALL hooks for a repoSitaram Chamarty2018-02-112-17/+19
| |
| * clean up previous patch on handling trailing slashesSitaram Chamarty2017-12-151-8/+12
| | | | | | | | | | Actually this is a revert of the previous patch, combined with putting that logic where it belongs (and in the process doing it more cleanly)
| * remove trailing "/" if user supplied oneSitaram Chamarty2017-12-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Basically, Linus complained that git-daemon is happy with the trailing / so why does gitolite choke on it? Fair enough. Actual implementation: we choose to kill the "/" at the point of entry, rather than weaken the sanity() function. ref: https://groups.google.com/forum/#!topic/gitolite/zLMoQ7u28gk
| * make pre-receive repo-specific hooks bail on non-zero exitSitaram Chamarty2017-11-091-2/+2
| |
| * change silent ignore to warning...Sitaram Chamarty2017-10-311-1/+1
| | | | | | | | | | we may also need a linter for this whole thing later, depending on usage and any reports coming in.
| * keeping the profs at Cambridge happy...Sitaram Chamarty2017-10-251-15/+28
| | | | | | | | | | | | | | | | | | | | What? That isn't a good enough commit message? Well then, go look up the thread on the mailing list (subject: "gitolite setup vs ssh-authkeys-split") :-) PS: Thanks to Tony Finch for the discussion!
| * compile-1 no longer needs existing repo of existing gl-confSitaram Chamarty2017-10-141-87/+77
| |
| * allow orphan gl-conf files (see below for details)Sitaram Chamarty2017-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Background: For explicitly named repos in gitolite.conf ("repo foo bar" as opposed to "repo @group-name" or "repo [a-z].*"), the compiled rules are placed in a file called "gl-conf" in the repo's directory. In addition, an entry is made in a hash called "split_conf" in the main compiled conf file (~/.gitolite/conf/gitolite.conf-compiled.pm). The crucial bit is this: if a repo does not have an entry in the split_conf hash, its gl-conf file will not be honored. Why is this? Because there are situations where that file may be out of date, and the rules within should not be in effect. For a simple example, consider this conf repo seven RW+ = u1 RW = u2 Now, management decides that "seven" needs to be assimilated into a large group called "borg": # add seven to borg @borg = seven # seven's rules are now deleted When you make this change and push, users u1 and u2 should not get access (unless the rules for @borg happened to allow them). That is, the gl-conf in the repo-dir is considered an orphan, and must not be included in rule processing. Since there is now no "seven" entry in split_conf, this is exactly what happens -- gl-conf is ignored. (Note: one might argue that gitolite compile should go and delete these orphaned gl-conf files, but that's yet another "full disk scan" overhead.) What this patch does: This patch allows an admin to override this safety feature, and say, in effect, "include orphaned gl-conf files in the rule processing; I know what I am doing". The admin enables that by adding an rc variable called ALLOW_ORPHAN_GL_CONF and setting it to "1". How does this help: This wouldn't be useful without some way of updating an individual repo's rules directly into its gl-conf file. contrib/commands/compile-1 does exactly that (see notes within that file for information, assumptions, warnings, etc.)
| * vim syntax and indent files...Sitaram Chamarty2017-10-052-0/+143
| | | | | | | | | | | | | | | | | | with the new "template-data" section, it becomes important to be able to visually know if you're entering something in the wrong section (template stuff outside the begin/end markers, or normal stuff inside). (unfortunately I only know vim; maybe others can help with other editors' setups?)
| * "these are not the droids you are looking for"Sitaram Chamarty2017-09-291-0/+149
| |
| * templates, template data, and compiling template dataSitaram Chamarty2017-09-294-0/+1425
| |
| * set a repo's group membership(s) in 'gl-repo-groups'...Sitaram Chamarty2017-09-261-0/+7
| | | | | | | | ...a la 'gl-perms' for role memberships
| * optimise the single-repo POST_CREATE cases a bit...Sitaram Chamarty2017-09-253-6/+28
| | | | | | | | | | ...I was lazily letting them run over ALL repos. (And I am still lazy because I did not do one of them yet; see comments in that file).
| * remove unneeded POST_CREATE scripts when running compile/setupSitaram Chamarty2017-09-255-28/+7
| |
| * some optimisations in compile step...Sitaram Chamarty2017-09-241-6/+12
| | | | | | | | | | | | ...these were found when the caching code was being developed. We have reverted the caching, but these optimisations are not related to caching so we keep them.
| * Revert "reduce stat() and other calls for huge installs"Sitaram Chamarty2017-09-181-28/+7
| | | | | | | | | | | | | | This reverts commit 41b7885b77cfe992ad3c96d0b021ece51ce1b3e3. Some parts of this change may come back later, but the caching logic will not.
| * (test suite) fixes for new git in fedora 26...Sitaram Chamarty2017-08-233-9/+9
| |
| * reduce stat() and other calls for huge installsSitaram Chamarty2017-08-111-7/+28
| | | | | | | | | | | | | | | | | | | | Fedora has 42000 or so repos, and a 'gitolite compile' was taking too long. This set of changes reduces the number of stat() and other calls from 9 to 2 per unchanged, existing repo. (The expectation is that only a few repos' rules are being changed each time, so this helps somewhat optimise the others not to take the same amount of time).
| * remove a couple of redundant/useless linesSitaram Chamarty2017-08-072-2/+0
| |
| * Use https:// instead of insecure git:// protocolTill Maas2017-08-046-9/+9
| | | | | | | | | | | | Signed-off-by: Till Maas <opensource@till.name> (with minor whitespace changes by sitaramc@gmail.com)
* | Merge tag 'v3.6.7'gitolite-gentoo-3.6.7Robin H. Johnson2020-06-161-0/+14
|\| | | | | | | v3.6.7
| * v3.6.7v3.6.7Sitaram Chamarty2017-07-021-0/+14
| |
* | Merge remote-tracking branch 'upstream/master'gitolite-gentoo-3.6.6.1Robin H. Johnson2017-06-2910-15/+228
|\|
| * add example PRE_GIT code for blocking access (IP-check)Sitaram Chamarty2017-06-101-0/+43
| |
| * allow repo-specific hooks to be organised into subdirectoriesSitaram Chamarty2017-05-301-0/+5
| | | | | | | | (thanks to Mathieu Arnold for catching this, and for an initial patch)
| * fix inefficiency in repo-specific hooksSitaram Chamarty2017-05-301-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | normally I don't care too much about inefficiencies that show up during a push to the gitolite-admin repo, but this one shows up even when a normal user creates a single wild-card repo -- it runs the repo-specific hooks trigger on ALL existing repos! no one noticed or complained, so perhaps it *actually* wasn't that visible a problem, but it's an easy fix anyway. (TBH, there's still a slight inefficiency. When a new (non-wild) repo is added to gitolite.conf, that particular one gets processed twice -- once in POST_CREATE, and once in POST_COMPILE... but *shrug*. If no one noticed the much bigger O(n) inefficiency we just fixed, this O(1) inefficiency hardly matters.)
| * allow the multi hook driver to be placed elsewhereSitaram Chamarty2017-05-101-1/+1
| | | | | | | | | | see https://groups.google.com/forum/#!topic/gitolite/-PvYRleGKHQ for details
| * Fix SHA256 fingerprinting to match the full character setAlex Vandiver2017-05-101-1/+1
| | | | | | | | | | | | Because of a one-bit typo, this only matched the fingerprint up until the first upper-case letter; this led to false-positive messages about hash collisions.
| * new 'skip_block' sugar, and 'testconf' feature using itSitaram Chamarty2017-04-152-0/+136
| |
| * allow syslog facility to be changedSitaram Chamarty2017-04-052-1/+3
| |
| * (minor) fix noise in ssh-authkeys-split (thanks to Tony Finch)Sitaram Chamarty2017-03-271-1/+1
| |
| * eliminate race (loaded systems only?) that makes gl-conf look emptySitaram Chamarty2017-01-161-4/+1
| |
| * minor oopsie in checking return code of "do"Sitaram Chamarty2017-01-161-1/+1
| |
| * allow @group names in config values to be expanded...Sitaram Chamarty2017-01-141-0/+8
| | | | | | | | | | The string "@group" is replaced with a space separated list of member names if it is a valid group. Otherwise it is left alone.
| * fix shebang in repo-specific-hooksSitaram Chamarty2016-11-251-1/+1
| | | | | | | | (thanks to Dieter on the mailing list for catching this!)
| * fix up command help for 'list-users' and 'list-members'Sitaram Chamarty2016-09-301-3/+19
| | | | | | | | ...was incomplete/ambiguous
| * (minor) patch typo in default .rckwadronaut2016-09-091-1/+1
| |
* | Merge tag 'v3.6.6'gitolite-gentoo-3.6.6Robin H. Johnson2017-06-2921-62/+122
|\| | | | | | | v3.6.6
| * v3.6.6v3.6.6Sitaram Chamarty2016-09-081-0/+10
| |
| * don't 'fatal' when a non-bare repo is thrown in!Sitaram Chamarty2016-09-081-1/+2
| | | | | | | | see https://groups.google.com/forum/#!topic/gitolite/O7lKFU2okl8
| * fix 'access' command behaviour for 'C' and 'D' permsSitaram Chamarty2016-09-082-3/+25
| | | | | | | | | | Thanks to Alexander Groß for catching this. Basically, the access command was ignoring the presence or absence
| * minor README changeSitaram Chamarty2016-09-051-3/+3
| | | | | | | | See mailing list thread, subject line "Readme-extensions"