Alexey Borzenkov [Tue, 19 May 2009 05:34:59 +0000]
Merge branch 'upstream/gentoo'
Alexey Borzenkov [Fri, 30 Jan 2009 22:56:38 +0000]
gitosis/gitweb.py: prefer directory with .git first
Because it is usually preferred for gitosis config to list repositories
without .git extension, gitweb should check for name.git before name.
This fixes a problem where you have repos somerepo (real somerepo.git)
and somerepo/otherrepo (real somerepo/otherrepo.git). Without this fix
gitweb gets confused and generated projects.list is not correct.
Robin H. Johnson [Sat, 17 Jan 2009 21:23:38 +0000]
Include my details in the setup.py.
Gianni Ceccarelli [Sat, 17 Jan 2009 17:27:24 +0000]
Patch adding cgit support to gitosis-gentoo
Me and lu_zero have been working on this patch a bit more, now it also
supports grouping the repositories in the cgit repo list, see
http://www.thenautilus.net/cgit/ for an example.
Alexey Borzenkov [Tue, 23 Dec 2008 21:04:51 +0000]
Allow wildcards in group access
Robin H. Johnson [Tue, 28 Oct 2008 10:39:18 +0000]
Handle git-1.6 which installs example hooks with .sample as a suffix so they do not run.
Robin H. Johnson [Tue, 28 Oct 2008 10:37:28 +0000]
Merge branch 'upstream' into gentoo
Conflicts:
gitosis/run_hook.py
gitosis/serve.py
gitosis/test/test_run_hook.py
gitosis/test/test_serve.py
Tommi Virtanen [Mon, 25 Aug 2008 16:55:45 +0000]
Use "git shell" instead of "git-shell", for compatibility with git 1.6.
Tommi Virtanen [Wed, 30 Jul 2008 11:20:43 +0000]
Add a MANIFEST.in to please setuptools sdist.
Robin H. Johnson [Fri, 11 Jul 2008 20:38:07 +0000]
Fixup whitespace.
Robin H. Johnson [Fri, 11 Jul 2008 20:34:57 +0000]
Ignore some useless lines.
Tommi Virtanen [Thu, 26 Jun 2008 08:33:48 +0000]
Accept "git upload-pack" etc, for future compatibility.
Tommi Virtanen [Sat, 19 Apr 2008 16:10:36 +0000]
Understand the popular gitosis.conf typo "writeable".
Log a warning still, don't want that to get too common.
Tommi Virtanen [Tue, 15 Apr 2008 12:52:17 +0000]
Show how group sections in config can be used in example.conf.
Tommi Virtanen [Wed, 19 Mar 2008 19:49:47 +0000]
Allow absolute paths in repo paths, treat them as relative.
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.
Tommi Virtanen [Wed, 19 Mar 2008 19:52:03 +0000]
Make serve acceptable path unit tests more careful.
Tests used to trigger the wanted security exception merely by being
unquoted, that's not good enough.
Tommi Virtanen [Wed, 19 Mar 2008 19:28:46 +0000]
Test that incoming paths cannot contain /../
Tommi Virtanen [Tue, 19 Feb 2008 06:57:59 +0000]
Show alternate gitweb.conf access control config.
Tommi Virtanen [Sat, 16 Feb 2008 10:17:18 +0000]
State that sharing user accounts for two uses is advanced usage.
Tommi Virtanen [Tue, 5 Feb 2008 11:18:46 +0000]
Add mod_redirect to lighttpd example config snippet.
Robin H. Johnson [Sun, 3 Feb 2008 08:13:03 +0000]
Avoid trailing whitespace messing up the keyname.
Robin H. Johnson [Tue, 22 Jan 2008 09:43:55 +0000]
Use a valid algo typo for ssh.
Robin H. Johnson [Tue, 22 Jan 2008 09:43:28 +0000]
Need config for repo init.
Robin H. Johnson [Tue, 22 Jan 2008 09:42:09 +0000]
Include the from option in ssh keys for security where desired by users.
Robin H. Johnson [Tue, 22 Jan 2008 09:17:00 +0000]
Remove old comment.
Tommi Virtanen [Mon, 31 Dec 2007 19:30:36 +0000]
Fix typo that made push fail in writeAuthorizedKeys.
Tommi Virtanen [Mon, 31 Dec 2007 19:11:22 +0000]
Make post-update hook reload config after writing it out.
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.
Tommi Virtanen [Mon, 31 Dec 2007 17:30:27 +0000]
Allow using fast_import for more than initial commit.
Tommi Virtanen [Mon, 31 Dec 2007 17:18:52 +0000]
Don't always init repository when doing fast-import.
Robin H. Johnson [Tue, 22 Jan 2008 08:06:10 +0000]
Make sure the test input is actually a string and not an integer, just like it will be in the config.
Tommi Virtanen [Thu, 17 Jan 2008 00:15:52 +0000]
Fix bug where members=@all didn't actually give access.
Robin H. Johnson [Fri, 4 Jan 2008 01:39:15 +0000]
Remember to convert string to integer as octal for making directories.
Tommi Virtanen [Mon, 31 Dec 2007 19:30:36 +0000]
Fix typo that made push fail in writeAuthorizedKeys.
Tommi Virtanen [Mon, 31 Dec 2007 19:11:22 +0000]
Make post-update hook reload config after writing it out.
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.
Tommi Virtanen [Mon, 31 Dec 2007 17:30:27 +0000]
Allow using fast_import for more than initial commit.
Tommi Virtanen [Mon, 31 Dec 2007 17:18:52 +0000]
Don't always init repository when doing fast-import.
Robin H. Johnson [Fri, 28 Dec 2007 13:36:36 +0000]
Add debug to serve.serve
Robin H. Johnson [Fri, 28 Dec 2007 11:46:05 +0000]
Allow some slashes, to provide support for git+ssh:// URLs that always have a leading slash.
Robin H. Johnson [Fri, 28 Dec 2007 08:25:10 +0000]
Add testcode for gitosis.dirmode setting.
Robin H. Johnson [Fri, 28 Dec 2007 08:19:03 +0000]
Add support for custom perms during repo creation.
Robin H. Johnson [Tue, 25 Dec 2007 01:31:21 +0000]
Remove old extract_user function, replaced by username property of SSHPublicKey class.
Robin H. Johnson [Mon, 24 Dec 2007 22:49:05 +0000]
Try to fix the @all problem.
Robin H. Johnson [Mon, 24 Dec 2007 13:11:56 +0000]
Improve default config stuff.
Robin H. Johnson [Mon, 24 Dec 2007 13:07:25 +0000]
Add utility function for default access to config.
Robin H. Johnson [Mon, 24 Dec 2007 13:07:05 +0000]
Use correct configparser for test.
Robin H. Johnson [Mon, 24 Dec 2007 12:52:50 +0000]
Use the new GitosisRawConfigParser.
Robin H. Johnson [Mon, 24 Dec 2007 12:50:42 +0000]
Use a custom RawConfigParser config implementation, with a special order for the keys.
Robin H. Johnson [Mon, 24 Dec 2007 12:49:54 +0000]
Renable test.
Robin H. Johnson [Mon, 24 Dec 2007 12:31:48 +0000]
Use an already existing config file is passed to gitosis-init.
Robin H. Johnson [Mon, 24 Dec 2007 12:31:22 +0000]
Since we do not write raw anymore, we do not know that the gitosis section is always first.
Robin H. Johnson [Mon, 24 Dec 2007 12:11:20 +0000]
Support filename for input.
Robin H. Johnson [Mon, 24 Dec 2007 12:08:32 +0000]
ssh-dsa is the actual correct name, but SSH accepts ssh-dss as an alias.
Robin H. Johnson [Mon, 24 Dec 2007 11:42:37 +0000]
Allow passing in a file for the admin key, and overriding the default key name.
Robin H. Johnson [Mon, 24 Dec 2007 11:42:02 +0000]
Exclude spaces from valid chars in username in command.
Robin H. Johnson [Mon, 24 Dec 2007 10:40:36 +0000]
Convert existing SSH module to use the sshkey module, including all tests.
Robin H. Johnson [Mon, 24 Dec 2007 10:11:57 +0000]
Add module to deal specifically with SSH public keys properly.
Robin H. Johnson [Mon, 24 Dec 2007 10:10:23 +0000]
Ignore pylint ** warning.
Robin H. Johnson [Sun, 23 Dec 2007 06:52:44 +0000]
Move the SSH username extraction to the ssh class, and the tests over as well.
Robin H. Johnson [Sun, 23 Dec 2007 06:32:41 +0000]
Expand SSH authorized_keys option parsing.
Robin H. Johnson [Tue, 18 Dec 2007 09:14:14 +0000]
Fix tabs for spaces.
Robin H. Johnson [Tue, 18 Dec 2007 08:53:27 +0000]
Add more testcases, and add coverage exclusion notations on places where we do test the the content functions already, or they interact with the system too much to test for coverage automatically.
Robin H. Johnson [Tue, 18 Dec 2007 08:39:09 +0000]
Add some more testcases.
Robin H. Johnson [Tue, 18 Dec 2007 08:26:46 +0000]
Add tests for the main App class, thanks to nose coverage tests.
Robin H. Johnson [Tue, 18 Dec 2007 07:01:08 +0000]
Add tests for getGeneratedFilesDir
Robin H. Johnson [Tue, 18 Dec 2007 06:58:44 +0000]
Add tests for _sysfunc and getRepositoryDir.
Robin H. Johnson [Tue, 18 Dec 2007 05:57:22 +0000]
Fix bug in mkdir call.
Robin H. Johnson [Tue, 18 Dec 2007 05:50:51 +0000]
pylintrc for this project.
Robin H. Johnson [Tue, 18 Dec 2007 05:50:34 +0000]
Remove more duplicate code.
Robin H. Johnson [Sat, 15 Dec 2007 14:25:15 +0000]
Pylint cleanup of init.py.
Robin H. Johnson [Sat, 15 Dec 2007 14:15:36 +0000]
Factor out more code.
Robin H. Johnson [Sat, 15 Dec 2007 14:11:58 +0000]
Factor out the stuff that changes repos based on the config only.
Robin H. Johnson [Sat, 15 Dec 2007 14:05:23 +0000]
Pylint cleanup.
Robin H. Johnson [Sat, 15 Dec 2007 13:59:43 +0000]
Remove unused import.
Robin H. Johnson [Sat, 15 Dec 2007 13:58:36 +0000]
Factor out functions with a common errno ignore block.
Robin H. Johnson [Sat, 15 Dec 2007 13:51:44 +0000]
Pylint cleanups for run_hook.py.
Robin H. Johnson [Sat, 15 Dec 2007 13:51:20 +0000]
Pylint cleanups again.
Robin H. Johnson [Sat, 15 Dec 2007 13:44:27 +0000]
Pylint cleanup of repository.py incl refactor to util.mkdir.
Robin H. Johnson [Sat, 15 Dec 2007 13:36:07 +0000]
Pylint cleanup.
Robin H. Johnson [Sat, 15 Dec 2007 13:11:15 +0000]
Pylint cleanups for group.py.
Robin H. Johnson [Sat, 15 Dec 2007 13:05:54 +0000]
Clean up gitweb.py to pass pylint, including refactoring out duplicate code.
Robin H. Johnson [Sat, 15 Dec 2007 13:05:30 +0000]
Use the new getboolean_default utility function to refactor code.
Robin H. Johnson [Sat, 15 Dec 2007 13:05:08 +0000]
Add new utility function to get a value from a ConfigParser, with a default if the section or value does not exist.
Robin H. Johnson [Sat, 15 Dec 2007 12:28:51 +0000]
Pylint fixes for gitdaemon.py, includes refactoring of set_export_ok to make it easier to follow.
Robin H. Johnson [Sat, 15 Dec 2007 12:07:55 +0000]
Make app.py pass pylint.
Robin H. Johnson [Sat, 15 Dec 2007 11:40:50 +0000]
Make util.py pass pylint.
Robin H. Johnson [Sat, 15 Dec 2007 11:45:47 +0000]
Fixes in access.py to pass pylint.
Tommi Virtanen [Mon, 17 Dec 2007 17:08:36 +0000]
Allow uppercase in usernames.
Tommi Virtanen [Tue, 11 Dec 2007 20:50:04 +0000]
Allow underscores, dots and dashes in SSH username local parts.
Tommi Virtanen [Tue, 11 Dec 2007 20:43:05 +0000]
Enforce safe usernames also when reading public key files from keydir.
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.
Tommi Virtanen [Tue, 11 Dec 2007 20:29:43 +0000]
Create ~git/gitosis in gitosis-init.
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.
Tommi Virtanen [Wed, 28 Nov 2007 22:40:34 +0000]
Write gitweb projects.list to ~/gitosis, not inside the gitosis-admin repo.
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.
Tommi Virtanen [Sun, 25 Nov 2007 16:32:02 +0000]
Add instructions for using gitweb.
Tommi Virtanen [Sun, 25 Nov 2007 16:14:29 +0000]
Add instructions for using git-daemon.
Tommi Virtanen [Sun, 18 Nov 2007 16:09:35 +0000]
Add TODO note.
Tommi Virtanen [Sun, 18 Nov 2007 16:08:09 +0000]
Let *.pub files have multiple lines, each containing one SSH key.
Makes managing accounts and access for people with multiple client
machines easier.
Tommi Virtanen [Sun, 18 Nov 2007 15:50:02 +0000]
When autocreating repositories on push, set git-daemon-export-ok etc.
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.
Tommi Virtanen [Sun, 18 Nov 2007 15:30:08 +0000]
Update TODO list.
In a gitosis-style setup, you can deal with most needs for cloneurl
via git_base_url_list in gitweb.conf.
Tommi Virtanen [Sat, 17 Nov 2007 15:40:34 +0000]
Set description from config file for gitweb use.
Tommi Virtanen [Sat, 17 Nov 2007 14:49:53 +0000]
Make repository.export work even with relative git_dir.
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.
Tommi Virtanen [Sat, 17 Nov 2007 14:27:21 +0000]
Manage git-daemon-export-ok flags from gitosis config.