Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move post-push dangling-HEAD check to post-receive hook | Richard Maw | 2017-08-01 | 1 | -0/+11 |
| | | | | | | | | | | | The smart-http interface starts http-backend which calls receive-pack. Unfortunately we were performing the dangling-HEAD check after calling receive-pack ourselves, so when using smart-http we weren't performing the check. By moving this into the post-receive hook the check can be performed in smart-http too. | ||||
* | Merge branch 'dsilvers/hooks' | Daniel Silverstone | 2017-07-08 | 1 | -59/+71 |
|\ | |||||
| * | Add post-receive hook support | Daniel Silverstone | 2017-07-02 | 1 | -59/+71 |
| | | | | | | | | | | | | This adds POST_RECEIVE properly as a hook. We move the current behaviour into hook functions, separating out core updates from the Supple hook run, to permit plugins to interpose behaviour. | ||||
* | | Export patterns as API and consume them in executables | Richard Maw | 2017-07-08 | 3 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | Gitano's executables, in addition to being required for operation, are intended to be examples of how to use the gitano library, so rather than importing with require "gitano.patterns", gitano should be imported and use gitano.patterns. No changes to imports are made inside lib/gitano/ because this would cause an import loop. | ||||
* | | Centralise patterns into a single module | Richard Maw | 2017-06-17 | 3 | -6/+9 |
|/ | | | | | | | This has moved every pattern that wasn't obviously just for string manipulation and has in the process of doing so reworked some logic so that fewer distinct patterns are used, and the repository path normalisation has been unified. | ||||
* | adds support for '-' as stdin for gitano-setupdsilvers/gitano-setup-tweaks | Daniel Silverstone | 2017-04-08 | 1 | -2/+14 |
| | |||||
* | fixes gitano-setup to read all answer files | Daniel Silverstone | 2017-04-08 | 1 | -3/+5 |
| | | | | | Ensure that when we loop through the answer files, we actually read all of them, not just the first. | ||||
* | Copyright cleanups | Daniel Silverstone | 2017-01-15 | 8 | -8/+208 |
| | |||||
* | cleanups: Whitespace and indentation and untabify | Daniel Silverstone | 2017-01-02 | 6 | -112/+110 |
| | | | | | | This is a massive unpleasant commit which does whitespace cleanup and fixes indentation (including untabifying). Hopefully we won't need to do this ever again, if we keep an eye on commits. | ||||
* | smart-http: Only generate Status 500 on non-exit of http-backend | Richard Maw | 2016-12-18 | 1 | -3/+3 |
| | | | | | If smart-http succeeds or fails it will produce its own message, we only need to produce our own code if we don't even get that far. | ||||
* | Remove executable bit from cgi inputs | Daniel Silverstone | 2016-12-18 | 2 | -0/+0 |
| | |||||
* | Tweak ordering for gitano-setup and update manpage | Daniel Silverstone | 2016-12-18 | 1 | -3/+4 |
| | |||||
* | Honour suppression of error messages from running comands | Daniel Silverstone | 2016-12-13 | 1 | -2/+4 |
| | |||||
* | Ensure we propagate exit codes | Daniel Silverstone | 2016-12-13 | 1 | -1/+2 |
| | |||||
* | Ensure gitano-auth passes the keytag through and that ↵ | Daniel Silverstone | 2016-12-03 | 1 | -1/+1 |
| | | | | gitano.auth.is_authorized uses it | ||||
* | Support a gitano-bypass user in gitano-setup | Daniel Silverstone | 2016-12-03 | 1 | -8/+23 |
| | |||||
* | Remove legacy repo:set_owner() and repo:set_description() calls | Daniel Silverstone | 2016-12-03 | 1 | -2/+2 |
| | |||||
* | Fix missing not-authorised message from HTTP command CGI | Daniel Silverstone | 2016-12-03 | 1 | -0/+2 |
| | |||||
* | Fix up empty command message to work like ssh does | Daniel Silverstone | 2016-12-03 | 1 | -3/+3 |
| | |||||
* | Add matching `end` to gitano-smart-http.cgi | Ben Brown | 2016-11-28 | 1 | -0/+1 |
| | |||||
* | Fix typo | Daniel Silverstone | 2016-09-24 | 1 | -1/+1 |
| | |||||
* | LACE: Provide new/old object data (incl. type and sign state) to lace | Daniel Silverstone | 2016-09-24 | 1 | -0/+3 |
| | |||||
* | Performed i18n on all bin/*.in | Daniel Silverstone | 2016-08-28 | 5 | -58/+61 |
| | |||||
* | Initial i18n/l10n of gitano-setup | Daniel Silverstone | 2016-08-27 | 1 | -65/+53 |
| | |||||
* | Basic i18n module | Daniel Silverstone | 2016-08-27 | 8 | -0/+8 |
| | |||||
* | Ensure that supple works during gitano-setup to early-warn if something's odd | Daniel Silverstone | 2016-05-30 | 1 | -0/+34 |
| | |||||
* | Support tags pointing at tags in the update hook | Daniel Silverstone | 2016-05-30 | 1 | -2/+2 |
| | |||||
* | Call git commands through repo:git_command() | Richard Maw | 2016-01-13 | 1 | -7/+9 |
| | |||||
* | Fix empty command bug | Richard Ipsum | 2015-10-30 | 3 | -3/+22 |
| | | | | | | | | | This fixes a bug that causes gitano to crash when it's given an empty command list Opening and closing of the log should be done in the application, so it can log before checking for authorization, log after, and clean up at the end | ||||
* | Support indicating the object type (and tagged object and type) on update | Daniel Silverstone | 2014-08-25 | 1 | -1/+26 |
| | |||||
* | Support paths.skel in gitano-setup to change skeleton pathbaserock/pedroalvarez/trove-ansible3 | Daniel Silverstone | 2014-05-21 | 1 | -1/+4 |
| | |||||
* | Short-circuiting hooks if repository is accessed directly | Gavin Lee | 2014-05-16 | 3 | -0/+18 |
| | | | | Signed-off-by: Vanush "Misha" Paturyan <misha@cs.nuim.ie> | ||||
* | Make gitano-command cgi use runcmd | Richard Ipsum | 2014-05-04 | 1 | -21/+1 |
| | |||||
* | Make gitano-auth use is_authorized and runcmd | Richard Ipsum | 2014-05-04 | 1 | -133/+9 |
| | |||||
* | Make gitano-smart-http pass repo_root to is_authorized | Richard Ipsum | 2014-05-04 | 1 | -1/+2 |
| | |||||
* | Make gitano-command pass repo_root to is_authorized | Richard Ipsum | 2014-05-04 | 1 | -1/+1 |
| | |||||
* | Ensure we pass the repo through otherwise HTTP commands might not work | Daniel Silverstone | 2014-04-09 | 1 | -3/+4 |
| | |||||
* | UPDATE-HOOK: Extra audit message information | Daniel Silverstone | 2014-04-04 | 1 | -1/+8 |
| | | | | | | | Increase the audit log message data to include the update action type, and the old and new SHA. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Use new configurable repository detectionbaserock/danielsilverstone/S10633-repo-detection | Daniel Silverstone | 2014-03-11 | 1 | -12/+4 |
| | | | | | | | | | Each of these callsites independently detected repositories before. Now they use the configurable repository detection which means (a) they are unified in their behaviour and (b) they can take advantage of new commands which might not have repositories represented in the same way. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk> | ||||
* | Add plugin support to all `.in` files | Daniel Silverstone | 2014-03-11 | 8 | -0/+8 |
| | | | | | | | | | | Each `.in` file needs to load plugins in order to ensure that all requisite functionality is available at all points during the lifetime of a Gitano operation. This is a largely mechanical delta. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk> | ||||
* | Ignore generated CGIs | Daniel Silverstone | 2014-03-06 | 1 | -0/+2 |
| | |||||
* | Make gitano-setup ask whether we will use htpasswd | Richard Ipsum | 2014-03-06 | 1 | -0/+2 |
| | |||||
* | Add gitano-smart-http cgi | Richard Ipsum | 2014-02-18 | 1 | -0/+76 |
| | |||||
* | Add gitano-command cgi | Richard Ipsum | 2014-02-18 | 1 | -0/+91 |
| | |||||
* | Cope with nil back from sio:read | Daniel Silverstone | 2013-11-17 | 1 | -1/+1 |
| | |||||
* | Also log the username and keytag in the syslog during gitano-auth | Daniel Silverstone | 2013-10-03 | 1 | -2/+4 |
| | |||||
* | Add syslogging to gitano-post-receive-hookbaserock/richardipsum/syslog | Richard Ipsum | 2013-10-02 | 1 | -8/+29 |
| | |||||
* | Add syslogging to gitano-update-ssh | Richard Ipsum | 2013-10-02 | 1 | -0/+3 |
| | |||||
* | Add syslogging to gitano-update-hook | Richard Ipsum | 2013-10-02 | 1 | -1/+10 |
| | |||||
* | Add syslogging to gitano-pre-receive-hook | Richard Ipsum | 2013-10-02 | 1 | -2/+10 |
| |