summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix up set_head set_description and set_readme to thread committerDaniel Silverstone2015-11-051-3/+3
|
* Fix up calls to set_ownerDaniel Silverstone2015-11-052-3/+3
|
* Ensure uses of repo:save_admin() propagate author and committerDaniel Silverstone2015-11-052-10/+14
|
* Support committing to adminrefs with author/committer differentDaniel Silverstone2015-11-051-7/+11
|
* Thread the old user context through cleanlyDaniel Silverstone2015-11-051-1/+2
|
* Support passing the committer for user and group and sshkey commandsDaniel Silverstone2015-11-052-3/+4
|
* Support author and committerDaniel Silverstone2015-11-051-7/+12
|
* Support dots in users and groupsDaniel Silverstone2015-11-052-4/+4
|
* Support renaming the user calling user renameDaniel Silverstone2015-11-051-0/+4
|
* Fix message on group renameDaniel Silverstone2015-11-051-1/+1
|
* Add support for auto_user_* and auto_group_*Daniel Silverstone2015-11-051-1/+36
|
* Change the http interface to use cURLDaniel Silverstone2015-11-051-49/+40
|
* plugins: Don't check for the file typeRichard Maw2015-10-301-1/+1
| | | | | | | dirp:iterate()'s fileinfo may not have d_type initialised, do the check could fail even if it was a valid plugin file. I think the filename check is sufficient.
* Fix empty command bugRichard Ipsum2015-10-301-5/+3
| | | | | | | | | 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
* Set hide=1 in cgitrc when project.archivedDaniel Silverstone2015-10-271-0/+4
|
* Merge archiverepo workDaniel Silverstone2015-10-131-6/+22
|
* Correct false assumption, require luxio explicitlyDaniel Silverstone2015-02-032-0/+2
|
* Clean up copy routines a little to improve repository copy functionalityDaniel Silverstone2014-08-241-7/+33
|
* Short-circuiting hooks if repository is accessed directlyGavin Lee2014-05-161-0/+1
| | | | Signed-off-by: Vanush "Misha" Paturyan <misha@cs.nuim.ie>
* Make runcmd output "Unable to continue"Richard Ipsum2014-05-041-0/+1
| | | | | At the moment the test suite requires that certain errors produce "Unable to continue" on stderr
* Add repo_root parameter to is_authorizedRichard Ipsum2014-05-041-2/+1
|
* Move runcmd into utilRichard Ipsum2014-05-041-0/+23
|
* Ensure we pass the repo through otherwise HTTP commands might not workDaniel Silverstone2014-04-091-1/+1
|
* Cache expansionsDaniel Silverstone2014-03-221-0/+8
|
* Use new configurable repository detectionbaserock/danielsilverstone/S10633-repo-detectionDaniel Silverstone2014-03-112-19/+8
| | | | | | | | | 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>
* Configurable repository detection for commandsDaniel Silverstone2014-03-111-2/+22
| | | | | | | | | | Up until now, all commands have been restricted to expecting the repository as the second argument *ONLY*. In order to better support other styles of command, this routine combines the behaviour of all places which currently look for the repository into one place. In addition, this means we can simplify several call sites. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
* Plugin support in GitanoDaniel Silverstone2014-03-112-1/+66
| | | | | | | | | This patch adds support for Gitano to load plugins from a colon separated set of paths. While colon separation is not the best mechanism, it is in common use. We explicitly do not add any escaping rules such as :: -> : in order to remain compatible with things like PATH processing. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
* use passwd.method and passwd.hash insteadDaniel Silverstone2014-03-061-6/+6
|
* Fatal should write contents of LogBuf to stderrRichard Ipsum2014-03-061-1/+3
|
* Can't close if we haven't a handleRichard Ipsum2014-03-061-2/+7
|
* Add auth.luaRichard Ipsum2014-02-182-0/+142
| | | | | We now perform auth in 2 cgis as well as gitano-auth, so auth needs to be in the library
* Fix some indentation in usercommandRichard Ipsum2014-02-151-22/+27
|
* Add passwd commandRichard Ipsum2014-02-151-3/+111
|
* Make whoami exit with err if user is anonymousRichard Ipsum2014-02-121-0/+5
|
* Add hash_password and check_password to utilRichard Ipsum2014-02-121-0/+14
|
* Fix some indentation in configRichard Ipsum2014-01-231-69/+70
|
* Don't use luxio.LOG_EMERG in syslogbaserock/richardipsum/log_emergRichard Ipsum2014-01-231-1/+1
|
* Add buffering capability to gitano.logRichard Ipsum2014-01-171-3/+50
|
* Expose project clod in the lace contextDaniel Silverstone2013-11-152-1/+31
|
* Fix up tabular matches to be less insaneDaniel Silverstone2013-11-151-12/+7
|
* Add syslog support to gitano.logRichard Ipsum2013-10-021-0/+62
|
* ACTION: Correct mistake regarding HTTP clientDaniel Silverstone2013-06-241-1/+1
| | | | | | | | Unfortunately the fix to prevent assert()s in the HTTP client would instead result in silent death in all cases. This fixes that, by correctly locating the response in the 'ok' variable, ready for matching.
* Fix hiccough in error pathDaniel Silverstone2013-06-041-1/+2
|
* Merge remote-tracking branch 'richardmaw/add-copy-command-rebase3'Daniel Silverstone2013-05-274-5/+319
|\ | | | | | | Reviewed-By: Daniel Silverstone <dsilvers@digital-scurf.org>
| * commands: add copy <source> <target>Richard Maw2013-05-272-0/+110
| |
| * 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.
| * util: add recursive directory copy functionsRichard Maw2013-05-271-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is complicated enough it could be split out into its own module. The most important function is copy_dir, which along with the source and target, is given an optional table of functions, which can be used to change its behaviour for different types of files. It may also be given a filter function to determine which files to process. The default function excludes . and .. of each directory from the set of directories to process. It is given the parent directory, filename and fileinfo of every file to process, so it may exclude based on any combination of location, file name and file type by returning true.
| * util: add hardlink_file and copy_symlink functionsRichard Maw2013-05-271-0/+24
| | | | | | | | | | | | | | | | | | hardlink file converts from luxio's raw interface to boolean success and error message return values, which are used elsewhere in the codebase. copy_symlink creates a symlink with the same target as the source symlink.
| * util: add copy_fileRichard Maw2013-05-271-0/+44
| |