summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
| |
| * 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.
| * util: add path_join functionRichard Maw2013-05-231-0/+5
| | | | | | | | | | | | | | | | This is like python's os.path.join. It is shorter to write `util.path_join("foo", "bar", "baz")` than `table.concat({"foo", "bar", "baz"}, "/")`, and I think it looks nicer. If any special path handling is later required, then it can go there.
| * command: fix a typo in rename's error handlerRichard Maw2013-05-231-1/+1
| |
* | Merge branch 'dsilvers/add-commands'Daniel Silverstone2013-05-276-88/+268
|\ \ | | | | | | | | | Reviewd-By: Richard Maw <richard.maw@gmail.com>
| * | SKEL: Add setreadme to the operational defines.dsilvers/add-commandsDaniel Silverstone2013-05-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Adds op_set_readme to the defines in the skeleton ruleset. This also adds op_set_readme to op_is_config since the README is essentially configuration for the project. Projects can perform deeper checks themselves if they wish, but the global ruleset applies the same to README changes as to everything else to do with project configuration.
| * | COMMAND: Add readme set subcommandDaniel Silverstone2013-05-271-14/+41
| | | | | | | | | | | | Add to the readme command the ability to alter the README of a repository.
| * | 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.
| * | SKEL: Update defines for rename commandsDaniel Silverstone2013-05-271-2/+4
| | | | | | | | | | | | | | | This updates the defines in the skeleton gitano-admin ruleset to include the user rename and group rename commands.
| * | COMMANDS: Add reasons to generate_confirmation callsDaniel Silverstone2013-05-272-4/+5
| | | | | | | | | | | | | | | This adds reasons to all generate_confirmation calls which were still lacking them.
| * | ADMINCOMMAND: Fix group del to remove subgroup membershipDaniel Silverstone2013-05-271-0/+8
| | | | | | | | | | | | | | | | | | Before this patch, if you used 'group del' to remove a group which was a subgroup member of another group, the resulting config would not parse. This fixes that.
| * | ADMINCOMMAND: Add group renameDaniel Silverstone2013-05-271-5/+42
| | | | | | | | | | | | | | | This adds a group rename command to allow the administrator to easily rename a group including all subgroup memberships.
| * | ADMINCOMMAND: Fix user delete for group membershipDaniel Silverstone2013-05-271-0/+1
| | | | | | | | | | | | | | | Prior to this patch, if you did 'user delete' on a user in a group then the group membership change was not committed.
| * | ADMINCOMMAND: Add user rename commandDaniel Silverstone2013-05-271-7/+50
| | | | | | | | | | | | Add a rename command for users.
| * | 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.
| * | REPOCOMMAND: Add fsck commandDaniel Silverstone2013-05-271-1/+20
| | | | | | | | | | | | | | | This adds an fsck command to the repocommand module. This allows git-fsck to be invoked on repositories in a Gitano instance.
| * | REPOCOMMAND: Shunt gc and count-objects to gitano.repocommandDaniel Silverstone2013-05-273-53/+74
|/ / | | | | | | | | | | | | | | Move the gc and count-objects commands to a separate repocommand module so that we can group fsck in with them neatly. This new module is for commands which operate neatly on a repository with little to no extra dependencies.
* | README: Include PCRE dependency informationDaniel Silverstone2013-05-231-0/+2
| |
* | Merge branch 'dsilvers/revamp-patterns'Daniel Silverstone2013-05-234-33/+65
|\ \ | |/ |/| | | Reviewed-By: Richard Maw <richard.maw@gmail.com>
| * LACE: Add PCRE support to simple matcherdsilvers/revamp-patternsDaniel Silverstone2013-05-231-1/+6
| | | | | | | | | | This adds PCRE support to the simple matcher. In order for this to work, lrexlib is required (lua-rex-pcre in Debian/Ubuntu).
| * LACE: Add prefix and suffix simple matchesDaniel Silverstone2013-05-234-4/+10
| | | | | | | | | | | | This adds prefix and suffix simple matches and updates the default ruleset to use them as appropriate. This actually eliminates almost all pattern matches from the default ruleset.
| * LACE: Update simple match with generic matchersDaniel Silverstone2013-05-231-22/+27
| | | | | | | | | | | | This updates the simple match routine to have a table of match functions. Initially this only supports the exact and pattern matches, but we can add more.
| * LACE: Alter simple match compiler ready for moreDaniel Silverstone2013-05-231-11/+27
|/ | | | | | | | | This alters the simple match compiler to support a definition format along the lines of: define some_name ref pattern ^refs/heads/ The accepted middle entries being exact, pattern, !exact and !pattern
* BIN: gitano-post-receive-hook fix for newlines in oldshaDaniel Silverstone2013-05-161-1/+1
| | | | | | Previously, oldsha could end up with a leading newline for all but the first ref altered during a push. This fix corrects that so that oldsha doesn't get newlines in it.
* REPOSITORY: Cope better with various cases of branch deletionDaniel Silverstone2013-05-011-8/+13
|
* ADMINCOMMAND: Fix 'as' to check if users existDaniel Silverstone2013-04-301-1/+8
|
* MAKE: Manpage installationDaniel Silverstone2013-04-251-1/+15
|
* Add the input data for gitano-setupDaniel Silverstone2013-04-251-1/+96
|
* Merge remote-tracking branch 'origin/liw/gitano-setup-manpage'Daniel Silverstone2013-04-251-0/+47
|\
| * Add preliminary manual page for gitano-setupliw/gitano-setup-manpageLars Wirzenius2013-04-251-0/+47
|/
* MAKE: distcleanDaniel Silverstone2013-04-251-0/+3
|
* POST-RECEIVE: Cause the info/web/last-modified to be updatedDaniel Silverstone2013-04-241-0/+9
|
* REPO: Add a mechanism to update the info/web/last-modified fileDaniel Silverstone2013-04-241-0/+49
|
* USERCOMMAND: In sshkey, ensure we refuse to continue if tag format is badDaniel Silverstone2013-04-241-0/+1
|
* USERCOMMAND: Fix up whoami output a littleDaniel Silverstone2013-04-241-6/+6
|
* COMMAND: Rearrange destroy success message to prevent tl;dr situationsDaniel Silverstone2013-04-241-2/+2
|
* GITANO-AUTH: Include the keytag in the lace contextDaniel Silverstone2013-04-241-0/+1
|
* AS: Fix up some logging so as foouser cmd <repo> doesn't crashDaniel Silverstone2013-04-241-4/+4
|
* PREFIX, not INST_ROOT, pleaseDaniel Silverstone2013-04-141-2/+3
|
* BIN: Default to admin rather than dsilvers during setupDaniel Silverstone2012-11-111-1/+1
|
* ACTIONS: Ensure that if we fail to read cleanly we don't assert, in HTTP clientDaniel Silverstone2012-11-101-1/+6
|
* ACTIONS: Remove assert()s from the HTTP client to increase resilienceDaniel Silverstone2012-11-101-3/+11
|
* ADMINCOMMAND: Lowercase user and group namesDaniel Silverstone2012-11-101-1/+10
|
* Upgrade purge message from info to stateDaniel Silverstone2012-11-101-1/+1
|
* SKEL: Add graveyard command to the skeleton and route it to siteadmin.laceDaniel Silverstone2012-11-101-1/+7
|
* ADMINCOMMAND: Add a graveyard commandDaniel Silverstone2012-11-101-0/+165
|