summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Move post-push dangling-HEAD check to post-receive hookRichard Maw2017-08-011-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 Silverstone2017-07-081-59/+71
|\
| * Add post-receive hook supportDaniel Silverstone2017-07-021-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 executablesRichard Maw2017-07-083-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 moduleRichard Maw2017-06-173-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-tweaksDaniel Silverstone2017-04-081-2/+14
|
* fixes gitano-setup to read all answer filesDaniel Silverstone2017-04-081-3/+5
| | | | | Ensure that when we loop through the answer files, we actually read all of them, not just the first.
* Copyright cleanupsDaniel Silverstone2017-01-158-8/+208
|
* cleanups: Whitespace and indentation and untabifyDaniel Silverstone2017-01-026-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-backendRichard Maw2016-12-181-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 inputsDaniel Silverstone2016-12-182-0/+0
|
* Tweak ordering for gitano-setup and update manpageDaniel Silverstone2016-12-181-3/+4
|
* Honour suppression of error messages from running comandsDaniel Silverstone2016-12-131-2/+4
|
* Ensure we propagate exit codesDaniel Silverstone2016-12-131-1/+2
|
* Ensure gitano-auth passes the keytag through and that ↵Daniel Silverstone2016-12-031-1/+1
| | | | gitano.auth.is_authorized uses it
* Support a gitano-bypass user in gitano-setupDaniel Silverstone2016-12-031-8/+23
|
* Remove legacy repo:set_owner() and repo:set_description() callsDaniel Silverstone2016-12-031-2/+2
|
* Fix missing not-authorised message from HTTP command CGIDaniel Silverstone2016-12-031-0/+2
|
* Fix up empty command message to work like ssh doesDaniel Silverstone2016-12-031-3/+3
|
* Add matching `end` to gitano-smart-http.cgiBen Brown2016-11-281-0/+1
|
* Fix typoDaniel Silverstone2016-09-241-1/+1
|
* LACE: Provide new/old object data (incl. type and sign state) to laceDaniel Silverstone2016-09-241-0/+3
|
* Performed i18n on all bin/*.inDaniel Silverstone2016-08-285-58/+61
|
* Initial i18n/l10n of gitano-setupDaniel Silverstone2016-08-271-65/+53
|
* Basic i18n moduleDaniel Silverstone2016-08-278-0/+8
|
* Ensure that supple works during gitano-setup to early-warn if something's oddDaniel Silverstone2016-05-301-0/+34
|
* Support tags pointing at tags in the update hookDaniel Silverstone2016-05-301-2/+2
|
* Call git commands through repo:git_command()Richard Maw2016-01-131-7/+9
|
* Fix empty command bugRichard Ipsum2015-10-303-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 updateDaniel Silverstone2014-08-251-1/+26
|
* Support paths.skel in gitano-setup to change skeleton pathbaserock/pedroalvarez/trove-ansible3Daniel Silverstone2014-05-211-1/+4
|
* Short-circuiting hooks if repository is accessed directlyGavin Lee2014-05-163-0/+18
| | | | Signed-off-by: Vanush "Misha" Paturyan <misha@cs.nuim.ie>
* Make gitano-command cgi use runcmdRichard Ipsum2014-05-041-21/+1
|
* Make gitano-auth use is_authorized and runcmdRichard Ipsum2014-05-041-133/+9
|
* Make gitano-smart-http pass repo_root to is_authorizedRichard Ipsum2014-05-041-1/+2
|
* Make gitano-command pass repo_root to is_authorizedRichard Ipsum2014-05-041-1/+1
|
* Ensure we pass the repo through otherwise HTTP commands might not workDaniel Silverstone2014-04-091-3/+4
|
* UPDATE-HOOK: Extra audit message informationDaniel Silverstone2014-04-041-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-detectionDaniel Silverstone2014-03-111-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` filesDaniel Silverstone2014-03-118-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 CGIsDaniel Silverstone2014-03-061-0/+2
|
* Make gitano-setup ask whether we will use htpasswdRichard Ipsum2014-03-061-0/+2
|
* Add gitano-smart-http cgiRichard Ipsum2014-02-181-0/+76
|
* Add gitano-command cgiRichard Ipsum2014-02-181-0/+91
|
* Cope with nil back from sio:readDaniel Silverstone2013-11-171-1/+1
|
* Also log the username and keytag in the syslog during gitano-authDaniel Silverstone2013-10-031-2/+4
|
* Add syslogging to gitano-post-receive-hookbaserock/richardipsum/syslogRichard Ipsum2013-10-021-8/+29
|
* Add syslogging to gitano-update-sshRichard Ipsum2013-10-021-0/+3
|
* Add syslogging to gitano-update-hookRichard Ipsum2013-10-021-1/+10
|
* Add syslogging to gitano-pre-receive-hookRichard Ipsum2013-10-021-2/+10
|