Commit graph

186 commits

Author SHA1 Message Date
Jakobus Schürz
d1e27e536e debug 2019-07-31 17:07:50 +02:00
Jakobus Schürz
078686cd17 DEBUG -> "DEBUG" 2019-07-31 17:01:16 +02:00
Jakobus Schürz
af521f67a0 loglevel debug added 2019-07-31 16:21:51 +02:00
Jakobus Schürz
00e9d7db66 ´filename in quotes 2019-07-31 16:19:55 +02:00
Jakobus Schürz
e49279d689 filehandle for logger added 2019-07-31 16:18:48 +02:00
Jakobus Schürz
e9fd563ccf debug 2019-07-31 12:55:19 +02:00
Jakobus Schürz
954588c5ed debug 2019-07-31 12:53:22 +02:00
Jakobus Schürz
5264a15b25 pubkey handling 2019-07-31 12:49:07 +02:00
Jakobus Schürz
0b35036df6 fixed missing colon in if statement 2019-07-31 12:42:09 +02:00
Jakobus Schürz
72b551f6b0 if only a username is given on init, it is used as principal. no
pubkey-handling
2019-07-31 11:58:39 +02:00
Jakobus Schürz
a6c329e7be added ssh-principals 2019-07-31 09:46:03 +02:00
Garry Dolley
f7c1a0e219 Added --quiet to git-init
git-init will only print error and warning messages.  Tests run a lot quieter now.
2015-01-22 12:16:17 -08:00
Tommi Virtanen
b391399176 Add git-archive --remote= support to gitosis-serve.
Now read access implies ability to grab archives remotely.
To allow that through git-daemon (for symmetricality),
run "git config --system daemon.uploadarch true".
2015-01-22 12:07:24 -08:00
Tommi Virtanen
678f196311 Expose current user to hooks as environment variable GITOSIS_USER 2015-01-22 11:53:01 -08:00
Tommi Virtanen
2d971ca95c Remove Debian packaging, downstream has deviated too much anyway 2015-01-22 11:26:51 -08:00
Tommi Virtanen
9e1cbc0d8d Use dashless form for git daemon 2015-01-22 10:51:55 -08:00
Tommi Virtanen
e7d8875797 Use dashless form for git update-server-info 2015-01-22 10:43:30 -08:00
Tommi Virtanen
28dfea5f4d Make sure admin repo post-update hook is executable 2015-01-22 10:39:26 -08:00
Tommi Virtanen
dcffc1739e Make tests cope with random dict ordering 2015-01-22 10:23:04 -08:00
Alexey Poimtsev
9481bb0330 Update README.rst 2014-01-22 15:25:20 +03:00
Tommi Virtanen
dedb3dc63f Let even readonly operations init a repo if needed.
Git >=1.6.2 support cloning empty repositories; this is a good way to
bootstrap development on a new repository.
2009-09-16 22:32:59 -07:00
Tommi Virtanen
4b19d45a3b Fix unit test failure with git >=1.6.0 2009-09-16 22:28:17 -07:00
Tommi Virtanen
73a0325204 Use "git shell" instead of "git-shell", for compatibility with git 1.6. 2008-08-25 19:55:45 +03:00
Tommi Virtanen
7e407d1013 Add a MANIFEST.in to please setuptools sdist. 2008-07-30 14:20:43 +03:00
Tommi Virtanen
72c754b2f0 Accept "git upload-pack" etc, for future compatibility. 2008-06-26 11:33:48 +03:00
Tommi Virtanen
38561aa6a5 Understand the popular gitosis.conf typo "writeable".
Log a warning still, don't want that to get too common.
2008-04-19 19:10:36 +03:00
Tommi Virtanen
a938dccf82 Show how group sections in config can be used in example.conf. 2008-04-15 15:52:17 +03:00
Tommi Virtanen
4d8ba7788d 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.
2008-03-19 21:55:19 +02:00
Tommi Virtanen
f839f889b6 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.
2008-03-19 21:52:03 +02:00
Tommi Virtanen
f7bcd554fa Test that incoming paths cannot contain /../ 2008-03-19 21:28:46 +02:00
Tommi Virtanen
e1d150daf5 Show alternate gitweb.conf access control config. 2008-02-19 08:57:59 +02:00
Tommi Virtanen
9708fb2cc9 State that sharing user accounts for two uses is advanced usage. 2008-02-16 12:17:18 +02:00
Tommi Virtanen
f724a2e724 Add mod_redirect to lighttpd example config snippet. 2008-02-05 13:18:46 +02:00
Tommi Virtanen
b04fbb1df7 Fix bug where members=@all didn't actually give access. 2008-01-17 02:15:52 +02:00
Tommi Virtanen
5b3f2f7a4d Fix typo that made push fail in writeAuthorizedKeys. 2007-12-31 21:30:41 +02:00
Tommi Virtanen
e495c9a66e 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.
2007-12-31 21:11:22 +02:00
Tommi Virtanen
895fd8b7ad Allow using fast_import for more than initial commit. 2007-12-31 19:30:27 +02:00
Tommi Virtanen
be91386b45 Don't always init repository when doing fast-import. 2007-12-31 19:18:52 +02:00
Tommi Virtanen
27bd3c9954 Allow uppercase in usernames. 2007-12-17 19:08:36 +02:00
Tommi Virtanen
b5e966c107 Allow underscores, dots and dashes in SSH username local parts. 2007-12-11 22:50:04 +02:00
Tommi Virtanen
cbea1785d0 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.
2007-12-11 22:43:05 +02:00
Tommi Virtanen
a5a758a407 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.
2007-12-11 22:29:43 +02:00
Tommi Virtanen
2078a0c828 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.
2007-11-29 00:40:34 +02:00
Tommi Virtanen
6ab2aa0a4b Add instructions for using gitweb. 2007-11-25 18:32:02 +02:00
Tommi Virtanen
d875e0fe5a Add instructions for using git-daemon. 2007-11-25 18:14:29 +02:00
Tommi Virtanen
e6940bfa94 Add TODO note. 2007-11-18 18:09:35 +02:00
Tommi Virtanen
107833667a Let *.pub files have multiple lines, each containing one SSH key.
Makes managing accounts and access for people with multiple client
machines easier.
2007-11-18 18:08:09 +02:00
Tommi Virtanen
bda6572c92 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.
2007-11-18 17:50:02 +02:00
Tommi Virtanen
af0081a197 Update TODO list.
In a gitosis-style setup, you can deal with most needs for cloneurl
via git_base_url_list in gitweb.conf.
2007-11-18 17:30:08 +02:00
Tommi Virtanen
4e76065fb7 Set description from config file for gitweb use. 2007-11-17 17:40:34 +02:00