Commit graph

62 commits

Author SHA1 Message Date
Tommi Virtanen 5df4b0c4f8 Ensure "git init" doesn't write to stdout, and confuse a push.
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.
2007-09-03 23:26:14 -07:00
Tommi Virtanen 4d793f6fd4 Make sure ~git/.ssh exists in gitosis-init. 2007-09-03 22:06:37 -07:00
Tommi Virtanen e7a1cc68c7 Let SSH public key user fields have a bit more varied content. 2007-09-03 22:06:37 -07:00
Tommi Virtanen 19d507c754 Fix whitespace in README. 2007-09-03 21:26:45 -07:00
Tommi Virtanen 8bbe3b989d Add a long description to setup.py 2007-09-03 21:26:24 -07:00
Tommi Virtanen 1f3924e2cb Make gitosis-init call run_hook.post_update directly.
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.
2007-09-03 21:16:15 -07:00
Tommi Virtanen 1dfe84754a Make gitosis-init ignore error from non-existent config file.
Refactored config file reading and logging initialization to make
things nicer.
2007-09-03 20:54:14 -07:00
Tommi Virtanen 96216c231e Created user get home from somewhere, let adduser create it.
At least the Ubuntu/Debian adduser is nice enough not to make a mess
of system user home directories with skeleton files.
2007-09-03 20:45:24 -07:00
Tommi Virtanen 2e068602d0 Don't git init when it's not needed.
Confusion between pathnames with extensions and without made
gitosis-serve confused when it needs to create a repository
and when not.
2007-09-03 19:24:04 -07:00
Tommi Virtanen e37b1dac1b Oops, fix bad arguments. Sadly no unit tests for this part :( 2007-09-03 19:17:48 -07:00
Tommi Virtanen f9158dca1e Add a simple "./debian/rules generate" to build debian/control.
This is ugly and annoying but alternatives are storing generated files
in version control, or manually maintaining pesky little details.
The control file will be part of the .diff.gz.
2007-09-03 18:30:16 -07:00
Tommi Virtanen 964e6ce79c Make debian package version match setup.py 2007-09-03 17:53:16 -07:00
Tommi Virtanen ce7cf1fad7 Make git ignore unit test coverage checking result file. 2007-09-03 17:52:23 -07:00
Tommi Virtanen a45445dca0 Update documentation in preparation of release. 2007-09-03 17:51:44 -07:00
Tommi Virtanen 82f5857759 Make gitosis-serve not fail with commands without arguments. 2007-09-03 17:09:19 -07:00
Tommi Virtanen 8a0654abe2 Refactor command line utilities to share setup.
Hide internal gitosis-ssh and gitosis-gitweb, it's all in gitosis-run-hook.
2007-09-03 17:09:12 -07:00
Tommi Virtanen e492d76c29 Make setuptools include templates in the egg. 2007-09-03 14:06:51 -07:00
Tommi Virtanen 3c2963b777 Make error messages harder to confuse with strerror(3). 2007-09-02 21:35:07 -07:00
Tommi Virtanen 70dbe1dfca Make repository autocreate add .git extension. 2007-09-02 13:42:55 -07:00
Tommi Virtanen 3dd96139a1 Make gitosis-serve create repositories on demand when pushing. 2007-09-02 13:28:41 -07:00
Tommi Virtanen 3339783581 Add unit tests for gitosis-serve. 2007-09-02 12:46:07 -07:00
Tommi Virtanen 97c093470e Add gitosis-init, for bootstrapping a new installation. 2007-09-01 18:59:13 -07:00
Tommi Virtanen acf005ea35 Add gitosis-run-hook, to be run from git hooks.
Sadly, no unit tests on this level, for now.
2007-09-01 18:54:49 -07:00
Tommi Virtanen a786d30f5a Refactor gitosis-gitweb to move temp file handling out of main. 2007-09-01 18:28:06 -07:00
Tommi Virtanen 0dbee1fadd Add utilities for fast-import, exporting repository.
Redo subprocess error handling.
2007-09-01 18:06:45 -07:00
Tommi Virtanen fd11351859 Use separate temp directories for separate tests.
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.
2007-09-01 16:44:28 -07:00
Tommi Virtanen 0132515356 Make sure re-initing a repository does not change access modes. 2007-09-01 16:34:42 -07:00
Tommi Virtanen c5ee8f08d5 Refactor to share file mode checking. 2007-09-01 16:28:51 -07:00
Tommi Virtanen c264d696e2 Make gitosis.util.mkdir pass through any os.mkdir args. 2007-09-01 16:24:55 -07:00
Tommi Virtanen 421785cf01 Remove unused import. 2007-09-01 13:43:22 -07:00
Tommi Virtanen d2fbd6f9aa Move commonly used functions to gitosis.util 2007-09-01 13:43:01 -07:00
Tommi Virtanen 5655b7f517 Add helper to create (bare) repositories with custom templates. 2007-08-30 20:03:17 -07:00
Tommi Virtanen f86b354744 Refactor unit test writeFile/readFile helpers. 2007-08-29 22:28:53 -07:00
Tommi Virtanen 63835763b1 Fix gitosis-gitweb docstring to match default repository path. 2007-08-29 21:16:17 -07:00
Tommi Virtanen 016fe8eb3a Typo in debian/control. 2007-08-29 21:15:48 -07:00
Tommi Virtanen a6947e4254 Add a formal license file. 2007-08-28 21:44:30 -07:00
Tommi Virtanen 15cc12caf0 Fix typo. 2007-08-28 21:43:13 -07:00
Tommi Virtanen 9ea2d46392 Fix default value for gitosis.repositories config variable in gitosis-gitweb. 2007-08-28 21:41:52 -07:00
Tommi Virtanen 3a0530a088 Add debianization. 2007-08-28 21:38:49 -07:00
Tommi Virtanen 2c8eeb7d3b Search PATH for git-shell, don't assume /usr/bin. 2007-08-11 17:28:52 -07:00
Tommi Virtanen 2a7f48f06e Make access denied message harder to confuse with system errors. 2007-08-11 17:28:52 -07:00
Tommi Virtanen 92476622f7 Fail if gitosis-serve can't read the config file. 2007-08-11 17:28:52 -07:00
Tommi Virtanen f2bc82f877 Allow repository names to start with numericals. 2007-08-11 17:28:52 -07:00
Tommi Virtanen c1b15d3e48 Add a default repository prefix.
Used to fail is gitosis.repositories is not set.
2007-08-11 17:28:52 -07:00
Tommi Virtanen 4f6a8b8770 Add .git to gitweb projects list if only that version of path exists. 2007-06-05 14:06:33 +03:00
Tommi Virtanen 8a6cb39b9f Extract test utility functions. 2007-06-05 14:05:54 +03:00
Tommi Virtanen b563c50da2 Clean up gitosis.gitweb unit tests. 2007-06-05 13:42:59 +03:00
Tommi Virtanen f7b0ec3729 Update notes. 2007-06-05 13:41:04 +03:00
Tommi Virtanen 418c5c3cfc Add `gitosis-gitweb`, for writing gitweb project lists.
Takes the list of repositories to publish from the gitosis config file.
2007-06-05 13:39:24 +03:00
Tommi Virtanen 67940f4b28 Remove completed todo entries. 2007-06-04 15:53:38 +03:00