summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add Yarn for testing dangling HEADrichardmaw/test-warn-dangling-headRichard Maw2017-08-012-1/+26
|
* Move post-push dangling-HEAD check to post-receive hookRichard Maw2017-08-012-8/+12
| | | | | | | | | | | 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.
* Add lang entry for dangling headRichard Maw2017-08-011-0/+1
|
* Add HOME during git archive callDaniel Silverstone2017-08-011-0/+1
| | | | | HOME is needed to find the modified git config. It not being set before now was an oversight.
* Also display stdin when failure ensuesDaniel Silverstone2017-08-011-0/+2
|
* Use $GTT rungit to handle git pullDaniel Silverstone2017-08-011-2/+1
| | | | | | | | Because additional git config is now required to use ext:: urls running git directly is not sufficient as the HOME variable needs to be set to locate the modified config. It's simplest to modify the yarns to use $GTT rungit to do this.
* Allow ext protocol for test purposesDaniel Silverstone2017-08-011-0/+1
| | | | | | | | Newer versions of git block the ext:: protocol by default, so that a repository with submodules may not run arbitrary code. Whitelisting the ext:: protocol for the test users is the minimum effort required to make it work again.
* Use new lock/unlock functions to guard htpasswd updatesdsilvers/sysbranch-fixesDaniel Silverstone2017-07-312-1/+4
|
* Add lock and unlock utility functionsDaniel Silverstone2017-07-311-0/+18
|
* Test suite properly runs gitano-command.cgiDaniel Silverstone2017-07-313-55/+82
| | | | | | | In order to make this work, I had to rework password handling in the test suite, and also redo the http unwrapper to use wget instead of executing the cgi directly. All yarn IMPLEMENTs which use $GTT runcommand and don't pass the stdin, *MUST* explicitly use </dev/null to prevent hangs in http mode.
* Should not run hook tests over httpDaniel Silverstone2017-07-311-0/+1
|
* Update htpasswd when user names changeDaniel Silverstone2017-07-311-0/+32
| | | | | | When deleting or renaming users, the htpasswd file needs updating so that we don't leave stale or incorrectly assigned user credentials around.
* Pass LUA_INIT through for test purposesDaniel Silverstone2017-07-311-2/+5
| | | | | In order to support the sysbranch work I'm doing for the CI, we need LUA_INIT to get passed through in the environment.
* Avoid build-time dependency on luxioRichard Ipsum2017-07-091-3/+4
|
* Missing install bits, thanks to Richard IpsumDaniel Silverstone2017-07-091-1/+1
|
* Fix an oopsie from the mergeDaniel Silverstone2017-07-091-3/+0
|
* Merge branch 'dsilvers/hooks'Daniel Silverstone2017-07-0810-69/+429
|\
| * Add hook testsdsilvers/hooksDaniel Silverstone2017-07-023-7/+156
| | | | | | | | Basic hook tests which verify preauth commandline and post receive hooks.
| * 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.
| * Add pre-authorisation commandline hookDaniel Silverstone2017-07-022-1/+20
| | | | | | | | | | | | | | | | This hook is permitted to adjust the command line before it is passed on to command authorisation. This is needed for a number of use-cases requested around permitting a plugin to provide domain specific command line shapes without needing to adjust Gitano's core command structures.
| * Export the gitano.hooks APIDaniel Silverstone2017-06-171-1/+3
| | | | | | | | | | | | | | This adjusts the core gitano module to export gitano.hooks. In addition, we bump the API version to 1.1.0 since we're adding in a new API (hooks)
| * Add hook names to hooks APIDaniel Silverstone2017-06-171-0/+36
| | | | | | | | | | | | This adds hook names to the gitano.hooks API which is there to explain what the hook functions should do, and to provide a logical name for hooks, rather than expecting people to not typo strings.
| * Add gitano.hooks module with basic functionalityDaniel Silverstone2017-06-171-0/+101
| | | | | | | | | | | | | | | | The gitano.hooks module is intended to support a variety of hooks, both those defined by Gitano itself; and those added by plugins. Hooks are meant as a means to propagate information and also to permit alteration of arguments before work is done.
| * Add support for ENV vars in gitano-test-toolDaniel Silverstone2017-06-172-1/+39
| | | | | | | | | | This adds support for gitano-test-tool to set environment variables. We also add some yarn implementations for doing this.
* | Augment scenario to check reowning of reposDaniel Silverstone2017-07-081-0/+12
| |
* | Re-own repos when renaming usersDaniel Silverstone2017-07-081-0/+14
| |
* | Reduce verbosity of pattern definitionsrichardmaw/unified-patternsRichard Maw2017-07-081-68/+27
| | | | | | | | | | | | | | Having both local definitions for each exported pattern and the export in the package was not helpful, and in fact caused accidents while developing where the package was filled with undefined variables.
* | Export patterns as API and consume them in executablesRichard Maw2017-07-084-3/+5
| | | | | | | | | | | | | | | | | | | | 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-1713-65/+189
|/ | | | | | | 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.
* Add missing finally to "created repositories have server info" yarnRichard Maw2017-05-131-0/+2
|
* Merge remote-tracking branch 'origin/richardmaw/githookdoc'Daniel Silverstone2017-04-261-1/+138
|\ | | | | | | (slight tweaks as per review)
| * Add section on git hooksrichardmaw/githookdocRichard Maw2017-04-101-0/+136
| |
| * Correct incorrect gitano admin branchRichard Maw2017-04-101-1/+1
|/
* Merge remote-tracking branch 'origin/dsilvers/update-on-create'Richard Maw2017-04-082-0/+18
|\
| * ensures server-info files exist on new reposdsilvers/update-on-createDaniel Silverstone2017-04-081-0/+5
| | | | | | | | | | This change ensures that the server-info files are created at the point that a repository is realised.
| * adds a test for server-info files in new reposDaniel Silverstone2017-04-081-0/+13
| | | | | | | | Even new repositories need http server info files.
* | Merge remote-tracking branch 'origin/dsilvers/gitano-setup-tweaks'Richard Maw2017-04-081-3/+17
|\ \
| * | 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.
* | Merge remote-tracking branch 'origin/dsilvers/gtt-cover-not-default'Richard Maw2017-04-082-1/+29
|\ \
| * | updates TESTING for COVER_GTT=yesdsilvers/gtt-cover-not-defaultDaniel Silverstone2017-04-081-0/+7
| | |
| * | makes GTT coverage optionalDaniel Silverstone2017-04-081-1/+22
| |/ | | | | | | | | | | | | | | | | The gitano-test-tool coverage was consuming a lot of time and slowing down coverage test running. In addition it was around 2/3 of all processes covered and as such was making coverage report generation slow too. This change adds a COVER_GTT makefile argument which must be set to 'yes' in order for COVERAGE=yes test runs to also cover gtt.
* | Merge remote-tracking branch 'origin/dsilvers/force-push-testing'Richard Maw2017-04-083-3/+39
|\ \ | |/ |/|
| * adds a force-push checking scenariodsilvers/force-push-testingDaniel Silverstone2017-03-062-1/+35
| |
| * adds support to amend the top commit in a repoDaniel Silverstone2017-03-061-0/+2
| |
| * adds support for force-push in IMPLEMENTSDaniel Silverstone2017-03-061-2/+2
|/
* adds instructions on coverage testingDaniel Silverstone2017-03-041-2/+42
|
* adds support for coverage testingDaniel Silverstone2017-03-047-15/+235
|
* adds the luacov submoduleDaniel Silverstone2017-03-042-0/+3
|
* quotes all the thingsDaniel Silverstone2017-03-041-87/+87
|