]>
oss.titaniummirror.com Git - repo_shell.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
R. Steve McKown [Sat, 21 Jun 2014 01:36:32 +0000 (19:36 -0600)]
gitcreate: add support for default hook scripts
If the .githooks directory is present in $git_root, any scripts therein
that are relevant for a bare repository are symbolically linked into the
new repository's hook directory.
R. Steve McKown [Sat, 21 Jun 2014 01:34:15 +0000 (19:34 -0600)]
gitcreate: Differentiate repopath and repodir
* repopath is the repository path provided by the user. Use $repopath
instead of $1 for a clearer script.
* repodir is the dirname of the repopath
R. Steve McKown [Tue, 4 Dec 2012 20:59:34 +0000 (13:59 -0700)]
Some documentation on gitweb integration
R. Steve McKown [Tue, 4 Dec 2012 20:43:58 +0000 (13:43 -0700)]
Fix improper handling of repo_groups sections
When parsing repo_groups ini entries, repo_shell was calling
strip_repo() on the entry value, then calling str_has_word() to see if
the desired repo was in the list of words represented by the ini value.
Of course this is wrong, each token in the value string must have
strip_repo() called upon it instead.
The solution:
* Move strip_repo() to stringutils.c
* Add str_has_repo(), when can call strip_repo() on each token in its
string.
R. Steve McKown [Mon, 1 Oct 2012 18:04:20 +0000 (12:04 -0600)]
Add ChangeLog
R. Steve McKown [Mon, 1 Oct 2012 17:42:13 +0000 (11:42 -0600)]
Properly force group id as done with user id
Note that group id must be set first, when we still have effective root
permissions thanks to u+s on repo_shell.
R. Steve McKown [Mon, 1 Oct 2012 17:41:22 +0000 (11:41 -0600)]
Set umask when runnning repository commands
Repository file permissions should only allow write to the owner, read
to the owner's group, and no access for anyone else.
R. Steve McKown [Mon, 1 Oct 2012 16:53:49 +0000 (10:53 -0600)]
README: chsh to /bin/bash for tab completion
It appears that users using /bin/sh as their login shell don't get the
same set of tab completion features as those using /bin/bash, even when
/bin/sh is a symbolic link to /bin/bash.
R. Steve McKown [Mon, 1 Oct 2012 16:37:58 +0000 (10:37 -0600)]
Improve README
R. Steve McKown [Mon, 1 Oct 2012 16:36:04 +0000 (10:36 -0600)]
Fixes for when /etc/repo_shell.conf is not present
R. Steve McKown [Fri, 28 Sep 2012 20:48:36 +0000 (14:48 -0600)]
Note sudo interaction with allowed_interactive
R. Steve McKown [Fri, 28 Sep 2012 20:30:24 +0000 (14:30 -0600)]
Document gitcreate -y option
R. Steve McKown [Fri, 28 Sep 2012 20:29:56 +0000 (14:29 -0600)]
Fix directory creation instructions
R. Steve McKown [Fri, 28 Sep 2012 20:27:17 +0000 (14:27 -0600)]
Fix subdirs create in git, add -y option
R. Steve McKown [Fri, 28 Sep 2012 19:57:05 +0000 (13:57 -0600)]
gitcreate creates subdirs after asking user
R. Steve McKown [Fri, 28 Sep 2012 19:44:48 +0000 (13:44 -0600)]
svncreate creates default hooks dir if not present
R. Steve McKown [Fri, 28 Sep 2012 18:47:33 +0000 (12:47 -0600)]
Add help option, expand test option to normal and detail
R. Steve McKown [Fri, 28 Sep 2012 18:37:05 +0000 (12:37 -0600)]
Add check option to repo_shell
R. Steve McKown [Fri, 28 Sep 2012 18:35:44 +0000 (12:35 -0600)]
Emit perms in same form as used in .gitacls
R. Steve McKown [Fri, 28 Sep 2012 18:22:57 +0000 (12:22 -0600)]
make package builds simple .tgz for install
R. Steve McKown [Fri, 28 Sep 2012 17:54:48 +0000 (11:54 -0600)]
git_acl_file is always {git_root}/.gitacls
R. Steve McKown [Fri, 28 Sep 2012 17:53:12 +0000 (11:53 -0600)]
change_user() correctly reports user on error
R. Steve McKown [Fri, 28 Sep 2012 17:42:07 +0000 (11:42 -0600)]
Allow tools to ref repopath.git as repopath
R. Steve McKown [Fri, 28 Sep 2012 17:11:51 +0000 (11:11 -0600)]
/etc/repo_shell.cfg -> /etc/repo_shell.conf
R. Steve McKown [Fri, 28 Sep 2012 17:10:14 +0000 (11:10 -0600)]
gitcreate doesn't add .git to file name
R. Steve McKown [Fri, 28 Sep 2012 17:02:31 +0000 (11:02 -0600)]
Clearer commands to add user and create dirs
R. Steve McKown [Fri, 28 Sep 2012 19:11:00 +0000 (13:11 -0600)]
Implement allow_interactive feature
R. Steve McKown [Fri, 28 Sep 2012 16:56:38 +0000 (10:56 -0600)]
Scripts tolerate spaces in /etc/repo_shell.cfg
R. Steve McKown [Fri, 28 Sep 2012 19:08:18 +0000 (13:08 -0600)]
Big README cleanup; add README.gitacls
R. Steve McKown [Fri, 28 Sep 2012 19:07:15 +0000 (13:07 -0600)]
Add make install, uninstall targets
R. Steve McKown [Fri, 28 Sep 2012 19:06:25 +0000 (13:06 -0600)]
Add scripts/gitcreate, mv svncreate to scripts/
R. Steve McKown [Fri, 28 Sep 2012 19:04:21 +0000 (13:04 -0600)]
stringutils.c collects funcs from several places
R. Steve McKown [Fri, 28 Sep 2012 15:58:54 +0000 (09:58 -0600)]
Proper free on execvp fail
R. Steve McKown [Fri, 28 Sep 2012 05:49:25 +0000 (23:49 -0600)]
Add extended wildcard matching
Now '*' can be used as the last character of a userid or repoid target.
Such as:
[user_groups]
group = st* sm*
[repo_groups]
rgroup = mirrors/*
[repo oss*]
* = rw
R. Steve McKown [Fri, 28 Sep 2012 04:41:36 +0000 (22:41 -0600)]
Properly handle wrong arg count when -t
R. Steve McKown [Fri, 28 Sep 2012 04:39:10 +0000 (22:39 -0600)]
Correctly exit on interactive shell request when not allowed
R. Steve McKown [Fri, 28 Sep 2012 04:38:26 +0000 (22:38 -0600)]
formatting
R. Steve McKown [Fri, 28 Sep 2012 04:37:37 +0000 (22:37 -0600)]
No need for sections in repo_shell.cfg
R. Steve McKown [Fri, 28 Sep 2012 04:33:31 +0000 (22:33 -0600)]
Implement * to mean any user or repo
R. Steve McKown [Thu, 27 Sep 2012 23:31:54 +0000 (17:31 -0600)]
More meaningful examples
R. Steve McKown [Wed, 26 Sep 2012 22:39:41 +0000 (16:39 -0600)]
Update README re: git acls
R. Steve McKown [Wed, 26 Sep 2012 22:10:54 +0000 (16:10 -0600)]
repo_shell honors git ACLs
* repo_shell uses git_acl.c
* str_has_word returns C99 bool
* git acl filename is set in repo_shell.cfg
* git_acl() accepts const char* args
* git_acl.h doesn't need to include stdbool.h
* git_acl.c manages no default git acl filename
* Use meaningful error message if permission denied due to ACL rule
* repo_shell has -t mode to get git acl function
R. Steve McKown [Wed, 26 Sep 2012 21:29:03 +0000 (15:29 -0600)]
repo_shell changes indention rules
R. Steve McKown [Wed, 26 Sep 2012 21:28:33 +0000 (15:28 -0600)]
repo_shell uses utility.c
R. Steve McKown [Wed, 26 Sep 2012 21:26:24 +0000 (15:26 -0600)]
Code for supporting git ACLs. acl_test is useful.
R. Steve McKown [Mon, 24 Sep 2012 17:10:51 +0000 (11:10 -0600)]
Add the svncreate script
R. Steve McKown [Mon, 24 Sep 2012 17:10:51 +0000 (11:10 -0600)]
Add the svncreate script
R. Steve McKown [Mon, 24 Sep 2012 16:48:29 +0000 (10:48 -0600)]
Add license file; update README
R. Steve McKown [Mon, 24 Sep 2012 14:23:28 +0000 (08:23 -0600)]
Rename handler() -> ini_handler()
R. Steve McKown [Mon, 24 Sep 2012 14:21:34 +0000 (08:21 -0600)]
Misc cleanups
R. Steve McKown [Mon, 24 Sep 2012 14:21:05 +0000 (08:21 -0600)]
Simpler and better handling of non-repo access
R. Steve McKown [Mon, 24 Sep 2012 14:18:34 +0000 (08:18 -0600)]
Remove unused code
R. Steve McKown [Mon, 24 Sep 2012 02:52:58 +0000 (20:52 -0600)]
Ensure non-repo ssh commands run as connecting user.
R. Steve McKown [Mon, 24 Sep 2012 02:46:49 +0000 (20:46 -0600)]
Fix getting a shell on server
R. Steve McKown [Mon, 24 Sep 2012 01:26:45 +0000 (19:26 -0600)]
Add version option, derived from repository tags
R. Steve McKown [Sun, 23 Sep 2012 19:19:09 +0000 (13:19 -0600)]
Some support for a future git acl implementation.
The config file will be git-acl.cfg in the home directory of the owner
as defined in /etc/repo_shell.cfg.
R. Steve McKown [Sun, 23 Sep 2012 18:54:36 +0000 (12:54 -0600)]
Add Makefile and README
R. Steve McKown [Sun, 23 Sep 2012 18:49:37 +0000 (12:49 -0600)]
Add support for /etc/repo_shell.cfg
* Base configuration in /etc/repo_shell.cfg.
* Program name is now repo_shell
* Uses the inih library for ini parsing
R. Steve McKown [Sun, 23 Sep 2012 17:55:19 +0000 (11:55 -0600)]
Execute shell progs with user PATH
R. Steve McKown [Sun, 23 Sep 2012 17:54:41 +0000 (11:54 -0600)]
Add git prefix to repository paths
R. Steve McKown [Sun, 23 Sep 2012 17:44:27 +0000 (11:44 -0600)]
Initial commit