aboutsummaryrefslogtreecommitdiff
path: root/gitosis
Commit message (Collapse)AuthorAge
* Allow absolute paths in repo paths, treat them as relative.Tommi Virtanen2008-03-19
| | | | | | | As the only convenient way to use non-standard SSH ports with git is via the ssh://user@host:port/path syntax, and that syntax forces absolute urls, just force convert absolute paths to relative paths; you'll never really want absolute paths via gitosis, anyway.
* Make serve acceptable path unit tests more careful.Tommi Virtanen2008-03-19
| | | | | Tests used to trigger the wanted security exception merely by being unquoted, that's not good enough.
* Test that incoming paths cannot contain /../Tommi Virtanen2008-03-19
|
* Fix bug where members=@all didn't actually give access.Tommi Virtanen2008-01-17
|
* Fix typo that made push fail in writeAuthorizedKeys.Tommi Virtanen2007-12-31
|
* Make post-update hook reload config after writing it out.Tommi Virtanen2007-12-31
| | | | | | | | | Without this, any changes to repository settings would only be applied after one extra (non-empty) push. Add unit test coverage for the post-update hook. Make SSH authorized_keys path configurable, mostly for unit tests.
* Allow using fast_import for more than initial commit.Tommi Virtanen2007-12-31
|
* Don't always init repository when doing fast-import.Tommi Virtanen2007-12-31
|
* Allow uppercase in usernames.Tommi Virtanen2007-12-17
|
* Allow underscores, dots and dashes in SSH username local parts.Tommi Virtanen2007-12-11
|
* Enforce safe usernames also when reading public key files from keydir.Tommi Virtanen2007-12-11
| | | | | | Warning: if your keyfiles contain more than just a-z0-9, at sign, dots or dashes, you will likely end up cutting off your access to your gitosis repository with this upgrade.
* Create ~git/gitosis in gitosis-init.Tommi Virtanen2007-12-11
| | | | | | | | | | | | | This fixes problems with e.g. "No such file or directory: '/.../git/gitosis/projects.list.42.tmp'" in generate_project_list when running gitosis-init. Existing users need to run:: sudo install -d -m0755 -o git -g git ~git/gitosis adjust the user and group name if necessary. Alternatively, just rerun gitosis-init.
* Write gitweb projects.list to ~/gitosis, not inside the gitosis-admin repo.Tommi Virtanen2007-11-29
| | | | | | | | | | | | | | This allows running gitweb as a separate user without needing to allow it read access to gitosis-admin.git. Running as separate user will still most likely require a ``chgrp www-data`` of the relevant repositories, but nothing not already decided public needs to be exposed. Existing gitweb users will need to adjust their gitweb.conf to point to the new location of the projects.list file. Removing the old projects.list from ~git/repositories/gitosis-admin.git/projects.list is safe once gitweb has switched to using the new location.
* Let *.pub files have multiple lines, each containing one SSH key.Tommi Virtanen2007-11-18
| | | | | Makes managing accounts and access for people with multiple client machines easier.
* When autocreating repositories on push, set git-daemon-export-ok etc.Tommi Virtanen2007-11-18
| | | | | | Without this, it would need a separate push to gitosis-admin.git, after the repository is autocreated, to get it to show up and be anonymously usable.
* Set description from config file for gitweb use.Tommi Virtanen2007-11-17
|
* Make repository.export work even with relative git_dir.Tommi Virtanen2007-11-17
| | | | | | | It changes the current directory, so it can't set --git-dir to a (potentially) relative path. Make path absolute before using it. This should fix post-update hook problems.
* Manage git-daemon-export-ok flags from gitosis config.Tommi Virtanen2007-11-17
|
* Add unit test for gitweb.generate_project_list.Tommi Virtanen2007-11-17
|
* generate_fp should be generate_project_list_fpGarry Dolley2007-11-17
|
* Give meaningful name to gitweb projects.list generation.Tommi Virtanen2007-11-15
| | | | Remove mentions of cancelled gitweb.conf generation from docstrings.
* Avoid decorators to be compatible with python2.3 (for now).Tommi Virtanen2007-11-15
|
* Create leading directories when creating missing repos in gitosis-serve.Tommi Virtanen2007-11-15
| | | | | | | | | | Creation is in gitosis.serve and not directly in repository.init(), because that's the location that can tell what part of the directory tree is allowed to be missing. Made the reconstructed git command include the extension as that was easier to do. haveAccess return value is now tuple, to preserve information on what parts of the path can be missing.
* Fix copy-paste that made gitosis.gitweb use wrong logger.Tommi Virtanen2007-11-15
|
* Make repository.export work with newer git.Tommi Virtanen2007-11-15
| | | | | | | | | gitosis-init and the post-update hook used to fail with GitCheckoutIndexError, when run with git >=1.5.3, which made checkout-index require GIT_WORK_TREE, jump through hoops to provide it, but still be backwards compatible with older git. Thanks to Garry Dolley for hunting the bug.
* Make gitosis-serve pass through environment to git-shell.Tommi Virtanen2007-11-15
|
* Make repository.export unit tests use --git-dir= too.Tommi Virtanen2007-11-15
|
* Make repository.has_initial_commit pass through environment to git.Tommi Virtanen2007-11-15
|
* Make repository.export pass through environment to git.Tommi Virtanen2007-11-15
|
* Make repository.fast_import pass through environment to git.Tommi Virtanen2007-11-15
|
* Make repository.init pass through environment to git.Tommi Virtanen2007-11-15
|
* Ensure "git init" doesn't write to stdout, and confuse a push.Tommi Virtanen2007-09-03
| | | | | | The repository autocreation functionality ends up sending the stdout to the client side, and there a very confused git push can't make any sense of the protocol.
* Make sure ~git/.ssh exists in gitosis-init.Tommi Virtanen2007-09-03
|
* Let SSH public key user fields have a bit more varied content.Tommi Virtanen2007-09-03
|
* Make gitosis-init call run_hook.post_update directly.Tommi Virtanen2007-09-03
| | | | | | | This avoids complexity where failing to read the config file in gitosis-run-hook is non-fatal, but only on the first run. gitosis-init will take care of config file reading and just pass a RawConfigParser instance to run_hook.post_update.
* Make gitosis-init ignore error from non-existent config file.Tommi Virtanen2007-09-03
| | | | | Refactored config file reading and logging initialization to make things nicer.
* Don't git init when it's not needed.Tommi Virtanen2007-09-03
| | | | | | Confusion between pathnames with extensions and without made gitosis-serve confused when it needs to create a repository and when not.
* Oops, fix bad arguments. Sadly no unit tests for this part :(Tommi Virtanen2007-09-03
|
* Make gitosis-serve not fail with commands without arguments.Tommi Virtanen2007-09-03
|
* Refactor command line utilities to share setup.Tommi Virtanen2007-09-03
| | | | Hide internal gitosis-ssh and gitosis-gitweb, it's all in gitosis-run-hook.
* Make error messages harder to confuse with strerror(3).Tommi Virtanen2007-09-02
|
* Make repository autocreate add .git extension.Tommi Virtanen2007-09-02
|
* Make gitosis-serve create repositories on demand when pushing.Tommi Virtanen2007-09-02
|
* Add unit tests for gitosis-serve.Tommi Virtanen2007-09-02
|
* Add gitosis-init, for bootstrapping a new installation.Tommi Virtanen2007-09-01
|
* Add gitosis-run-hook, to be run from git hooks.Tommi Virtanen2007-09-01
| | | | Sadly, no unit tests on this level, for now.
* Refactor gitosis-gitweb to move temp file handling out of main.Tommi Virtanen2007-09-01
|
* Add utilities for fast-import, exporting repository.Tommi Virtanen2007-09-01
| | | | Redo subprocess error handling.
* Use separate temp directories for separate tests.Tommi Virtanen2007-09-01
| | | | | | Makes unit tests for the previous commit work even when not run alone. Should have done this from the beginning, but didn't find the trick for getting the module name.
* Make sure re-initing a repository does not change access modes.Tommi Virtanen2007-09-01
|