summaryrefslogtreecommitdiff
path: root/lib/gitano/repository.lua
Commit message (Collapse)AuthorAgeFilesLines
* Centralise patterns into a single moduleRichard Maw2017-06-171-27/+27
| | | | | | | 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.
* 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.
* Copyright cleanupsDaniel Silverstone2017-01-151-1/+27
|
* testing: Disable variable dump by defaultRichard Maw2017-01-081-0/+2
| | | | | | | | | It's a security risk to allow gitano to write to an arbitrary path based on the value of an environment variable. It's low risk since by default gitano is run directly by the http or ssh server, which do not set variables by default, but it's trivial enough to leave it commented out.
* testing: Add a way to extract variables from the test suiteRichard Maw2017-01-081-0/+23
|
* cleanups: Whitespace and indentation and untabifyDaniel Silverstone2017-01-021-142/+142
| | | | | | 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.
* Ensure that if there is no : then readme gets one, for safetyDaniel Silverstone2017-01-021-0/+3
|
* Remove markdown.luaDaniel Silverstone2017-01-021-1/+0
|
* Remove README support from repositoryDaniel Silverstone2017-01-021-53/+0
|
* Remove legacy repo:set_owner() and repo:set_description() callsDaniel Silverstone2016-12-031-19/+6
|
* Internationalisation of repository moduleDaniel Silverstone2016-11-051-51/+57
|
* Remove owner fromthe lace contextDaniel Silverstone2016-10-251-5/+0
|
* Ensure we use the pid when preparing new versions of files to prevent race ↵Daniel Silverstone2016-09-241-6/+6
| | | | condition
* REPO: Add check_signature method and export to suppleDaniel Silverstone2016-09-241-0/+43
|
* gitano.repository.git_command: Handle shallowUpdate configRichard Maw2016-01-131-0/+17
| | | | | | | If the repository is configured with git.receive.shallowUpdate (as set by `gitanocmd config set git.receive.shallowUpdate true`) then git will be run with receive.shallowUpdate set, which allows shallow commits to be pushed.
* gitano.repository: Add git_command() methodRichard Maw2016-01-111-0/+7
| | | | | | | This takes a git command to run, minus the "git" argument. The intention is that if it needs to insert config options, then they can all be done in one place.
* Ensure uses of repo:save_admin() propagate author and committerDaniel Silverstone2015-11-051-8/+12
|
* Support committing to adminrefs with author/committer differentDaniel Silverstone2015-11-051-7/+11
|
* Set hide=1 in cgitrc when project.archivedDaniel Silverstone2015-10-271-0/+4
|
* Can't close if we haven't a handleRichard Ipsum2014-03-061-2/+7
|
* Expose project clod in the lace contextDaniel Silverstone2013-11-151-0/+18
|
* Merge remote-tracking branch 'richardmaw/add-copy-command-rebase3'Daniel Silverstone2013-05-271-4/+65
|\ | | | | | | Reviewed-By: Daniel Silverstone <dsilvers@digital-scurf.org>
| * repository: don't break a copy in progressRichard Maw2013-05-271-0/+10
| | | | | | | | | | | | | | | | | | | | This attempts to create the target repository outside the call to util.copy_dir(), since internally it uses mkdir_p, which doesn't distinguish between a repository that already exists. If this check is not made, then it will fail to create a file inside the repository since it already exists, then attempt to clean up after itself, possibly silently breaking the in progress copy.
| * repository: add a copy_to methodRichard Maw2013-05-271-0/+51
| | | | | | | | | | This will create a repository in a different path, so it does not appear until the copy is complete.
| * repository: use path_join in some placesRichard Maw2013-05-231-4/+4
| | | | | | | | | | It's longer in these cases, but it's more explicitly creating a path when using a function for it.
* | REPOSITORY: Add set_readme method.Daniel Silverstone2013-05-271-0/+20
| | | | | | | | | | Add a set_readme method to gitano.repository so that we can programmatically change the README.
* | REPOSITORY: Allow tokens to be customised with notesDaniel Silverstone2013-05-271-2/+2
|/ | | | | | Given we now use repository tokens in multiple places, this ensures that the tokens can be customised with notes. This might be to ensure that a delete user token doesn't match a rename user token for example.
* REPOSITORY: Cope better with various cases of branch deletionDaniel Silverstone2013-05-011-8/+13
|
* REPO: Add a mechanism to update the info/web/last-modified fileDaniel Silverstone2013-04-241-0/+49
|
* Ensure spaces and nulls cannot form part of a repository nameDaniel Silverstone2012-10-091-0/+2
|
* GITANO: Move the force_empty_tree() call from always, to update-hook and ↵Daniel Silverstone2012-09-101-4/+0
| | | | only if needed
* GITANO: Migrate from gitano.git to gallDaniel Silverstone2012-09-081-14/+14
|
* GITANO: Rationalise splittable stuff and split groups on dashes and repos on ↵Daniel Silverstone2012-09-051-11/+2
| | | | slashes
* REPOSITORY: Add repository/{base,dir}name and repository/N to the context, ↵Daniel Silverstone2012-09-031-0/+10
| | | | where {base,dir}name are obvious and /N is the Nth element
* REPOSITORY: Change reponame cleaning rules to be more pleasant and usefulDaniel Silverstone2012-09-011-5/+10
|
* Merge pre-receive hook supportDaniel Silverstone2012-09-011-1/+1
|\
| * HOOKS: Add support for pre-receive hooksDaniel Silverstone2012-08-221-1/+1
| |
* | REPOSITORY: Fix spello in mkdir_p() nameDaniel Silverstone2012-08-311-1/+1
| |
* | REPOSITORY: Allow lace to run against nascent repositoriesDaniel Silverstone2012-08-311-1/+5
| |
* | GITANO: Update to remove repository_root from gitano-adminDaniel Silverstone2012-08-301-6/+6
| |
* | GITANO: Remove need for graveyard_rootDaniel Silverstone2012-08-301-1/+2
| |
* | REPOSITORY: Add filter function to foreachDaniel Silverstone2012-08-301-3/+9
| |
* | REPOSITORY: Tweaks and tidying for base config and admin messagesDaniel Silverstone2012-08-301-5/+5
| |
* | REPOSITORY: Fix check_and_upgrade_hooks to use symlinksDaniel Silverstone2012-08-301-42/+15
| |
* | INSTALLER: make install and gitano-setup should work (mostly)Daniel Silverstone2012-08-301-1/+1
| |
* | REPOSITORY: Apparently repo-specific cgitrc files lack the repo.Daniel Silverstone2012-08-281-1/+1
| |
* | REPOSITORY: Use = not : for cgitrcDaniel Silverstone2012-08-281-1/+1
| |
* | REPOSITORY: Allow save_admin to be more clear about what happenedDaniel Silverstone2012-08-281-4/+8
| |
* | REPOSITORY: Ensure we do not save broken admin refsDaniel Silverstone2012-08-281-0/+5
| |
* | REPOSITORY: Generate cgitrcDaniel Silverstone2012-08-281-0/+37
| |