]> oss.titaniummirror.com Git - repo_shell.git/log
repo_shell.git
9 years agogitcreate: add option to set description master 0.9
R. Steve McKown [Mon, 22 Sep 2014 17:38:37 +0000 (11:38 -0600)]
gitcreate: add option to set description

9 years agogitcreate: correct typo in error message
R. Steve McKown [Mon, 22 Sep 2014 17:38:14 +0000 (11:38 -0600)]
gitcreate: correct typo in error message

9 years agoREADME: show how other users can run gitcreate
R. Steve McKown [Mon, 22 Sep 2014 16:50:02 +0000 (10:50 -0600)]
README: show how other users can run gitcreate

It is inconvenient for other users not to be able to create
repositories.  And generally repository creation is a safe operation,
since the gitcreate script prevents its execution on a path already
created.  The worst case is junk being added that an administrator must
remove, which is tolerable.

In such cases, sudo can be configured to allow other users the ability
to create new git repositories.

9 years agogitcreate: automatically re-run as repo owner
R. Steve McKown [Mon, 22 Sep 2014 16:48:33 +0000 (10:48 -0600)]
gitcreate: automatically re-run as repo owner

If gitcreate as ran as root, it can restart itself using sudo so that it
is ran as the correct repo owner user.  This is a convenience change.

9 years agogitcreate: add support for default hook scripts 0.8
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.

9 years agogitcreate: Differentiate repopath and repodir
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

11 years agoSome documentation on gitweb integration
R. Steve McKown [Tue, 4 Dec 2012 20:59:34 +0000 (13:59 -0700)]
Some documentation on gitweb integration

11 years agoFix improper handling of repo_groups sections 0.7
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.

11 years agoAdd ChangeLog
R. Steve McKown [Mon, 1 Oct 2012 18:04:20 +0000 (12:04 -0600)]
Add ChangeLog

11 years agoProperly force group id as done with user id 0.6
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.

11 years agoSet umask when runnning repository commands
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.

11 years agoREADME: chsh to /bin/bash for tab completion
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.

11 years agoImprove README
R. Steve McKown [Mon, 1 Oct 2012 16:37:58 +0000 (10:37 -0600)]
Improve README

11 years agoFixes for when /etc/repo_shell.conf is not present
R. Steve McKown [Mon, 1 Oct 2012 16:36:04 +0000 (10:36 -0600)]
Fixes for when /etc/repo_shell.conf is not present

11 years agoNote sudo interaction with allowed_interactive
R. Steve McKown [Fri, 28 Sep 2012 20:48:36 +0000 (14:48 -0600)]
Note sudo interaction with allowed_interactive

11 years agoDocument gitcreate -y option 0.5
R. Steve McKown [Fri, 28 Sep 2012 20:30:24 +0000 (14:30 -0600)]
Document gitcreate -y option

11 years agoFix directory creation instructions
R. Steve McKown [Fri, 28 Sep 2012 20:29:56 +0000 (14:29 -0600)]
Fix directory creation instructions

11 years agoFix subdirs create in git, add -y option
R. Steve McKown [Fri, 28 Sep 2012 20:27:17 +0000 (14:27 -0600)]
Fix subdirs create in git, add -y option

11 years agogitcreate creates subdirs after asking user
R. Steve McKown [Fri, 28 Sep 2012 19:57:05 +0000 (13:57 -0600)]
gitcreate creates subdirs after asking user

11 years agosvncreate creates default hooks dir if not present
R. Steve McKown [Fri, 28 Sep 2012 19:44:48 +0000 (13:44 -0600)]
svncreate creates default hooks dir if not present

11 years agoAdd help option, expand test option to normal and detail
R. Steve McKown [Fri, 28 Sep 2012 18:47:33 +0000 (12:47 -0600)]
Add help option, expand test option to normal and detail

11 years agoAdd check option to repo_shell
R. Steve McKown [Fri, 28 Sep 2012 18:37:05 +0000 (12:37 -0600)]
Add check option to repo_shell

11 years agoEmit perms in same form as used in .gitacls
R. Steve McKown [Fri, 28 Sep 2012 18:35:44 +0000 (12:35 -0600)]
Emit perms in same form as used in .gitacls

11 years agomake package builds simple .tgz for install
R. Steve McKown [Fri, 28 Sep 2012 18:22:57 +0000 (12:22 -0600)]
make package builds simple .tgz for install

11 years agogit_acl_file is always {git_root}/.gitacls
R. Steve McKown [Fri, 28 Sep 2012 17:54:48 +0000 (11:54 -0600)]
git_acl_file is always {git_root}/.gitacls

11 years agochange_user() correctly reports user on error
R. Steve McKown [Fri, 28 Sep 2012 17:53:12 +0000 (11:53 -0600)]
change_user() correctly reports user on error

11 years agoAllow tools to ref repopath.git as repopath
R. Steve McKown [Fri, 28 Sep 2012 17:42:07 +0000 (11:42 -0600)]
Allow tools to ref repopath.git as repopath

11 years ago/etc/repo_shell.cfg -> /etc/repo_shell.conf
R. Steve McKown [Fri, 28 Sep 2012 17:11:51 +0000 (11:11 -0600)]
/etc/repo_shell.cfg -> /etc/repo_shell.conf

11 years agogitcreate doesn't add .git to file name
R. Steve McKown [Fri, 28 Sep 2012 17:10:14 +0000 (11:10 -0600)]
gitcreate doesn't add .git to file name

11 years agoClearer commands to add user and create dirs
R. Steve McKown [Fri, 28 Sep 2012 17:02:31 +0000 (11:02 -0600)]
Clearer commands to add user and create dirs

11 years agoImplement allow_interactive feature
R. Steve McKown [Fri, 28 Sep 2012 19:11:00 +0000 (13:11 -0600)]
Implement allow_interactive feature

11 years agoScripts tolerate spaces in /etc/repo_shell.cfg
R. Steve McKown [Fri, 28 Sep 2012 16:56:38 +0000 (10:56 -0600)]
Scripts tolerate spaces in /etc/repo_shell.cfg

11 years agoBig README cleanup; add README.gitacls
R. Steve McKown [Fri, 28 Sep 2012 19:08:18 +0000 (13:08 -0600)]
Big README cleanup; add README.gitacls

11 years agoAdd make install, uninstall targets
R. Steve McKown [Fri, 28 Sep 2012 19:07:15 +0000 (13:07 -0600)]
Add make install, uninstall targets

11 years agoAdd scripts/gitcreate, mv svncreate to scripts/
R. Steve McKown [Fri, 28 Sep 2012 19:06:25 +0000 (13:06 -0600)]
Add scripts/gitcreate, mv svncreate to scripts/

11 years agostringutils.c collects funcs from several places
R. Steve McKown [Fri, 28 Sep 2012 19:04:21 +0000 (13:04 -0600)]
stringutils.c collects funcs from several places

11 years agoProper free on execvp fail
R. Steve McKown [Fri, 28 Sep 2012 15:58:54 +0000 (09:58 -0600)]
Proper free on execvp fail

11 years agoAdd extended wildcard matching 0.4
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

11 years agoProperly handle wrong arg count when -t
R. Steve McKown [Fri, 28 Sep 2012 04:41:36 +0000 (22:41 -0600)]
Properly handle wrong arg count when -t

11 years agoCorrectly exit on interactive shell request when not allowed
R. Steve McKown [Fri, 28 Sep 2012 04:39:10 +0000 (22:39 -0600)]
Correctly exit on interactive shell request when not allowed

11 years agoformatting
R. Steve McKown [Fri, 28 Sep 2012 04:38:26 +0000 (22:38 -0600)]
formatting

11 years agoNo need for sections in repo_shell.cfg
R. Steve McKown [Fri, 28 Sep 2012 04:37:37 +0000 (22:37 -0600)]
No need for sections in repo_shell.cfg

11 years agoImplement * to mean any user or repo
R. Steve McKown [Fri, 28 Sep 2012 04:33:31 +0000 (22:33 -0600)]
Implement * to mean any user or repo

11 years agoMore meaningful examples
R. Steve McKown [Thu, 27 Sep 2012 23:31:54 +0000 (17:31 -0600)]
More meaningful examples

11 years agoUpdate README re: git acls
R. Steve McKown [Wed, 26 Sep 2012 22:39:41 +0000 (16:39 -0600)]
Update README re: git acls

11 years agorepo_shell honors git ACLs 0.3
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

11 years agorepo_shell changes indention rules
R. Steve McKown [Wed, 26 Sep 2012 21:29:03 +0000 (15:29 -0600)]
repo_shell changes indention rules

11 years agorepo_shell uses utility.c
R. Steve McKown [Wed, 26 Sep 2012 21:28:33 +0000 (15:28 -0600)]
repo_shell uses utility.c

11 years agoCode for supporting git ACLs. acl_test is useful.
R. Steve McKown [Wed, 26 Sep 2012 21:26:24 +0000 (15:26 -0600)]
Code for supporting git ACLs.  acl_test is useful.

11 years agoAdd the svncreate script
R. Steve McKown [Mon, 24 Sep 2012 17:10:51 +0000 (11:10 -0600)]
Add the svncreate script

11 years agoAdd the svncreate script
R. Steve McKown [Mon, 24 Sep 2012 17:10:51 +0000 (11:10 -0600)]
Add the svncreate script

11 years agoAdd license file; update README
R. Steve McKown [Mon, 24 Sep 2012 16:48:29 +0000 (10:48 -0600)]
Add license file; update README

11 years agoRename handler() -> ini_handler() 0.2
R. Steve McKown [Mon, 24 Sep 2012 14:23:28 +0000 (08:23 -0600)]
Rename handler() -> ini_handler()

11 years agoMisc cleanups
R. Steve McKown [Mon, 24 Sep 2012 14:21:34 +0000 (08:21 -0600)]
Misc cleanups

11 years agoSimpler and better handling of non-repo access
R. Steve McKown [Mon, 24 Sep 2012 14:21:05 +0000 (08:21 -0600)]
Simpler and better handling of non-repo access

11 years agoRemove unused code
R. Steve McKown [Mon, 24 Sep 2012 14:18:34 +0000 (08:18 -0600)]
Remove unused code

11 years agoEnsure non-repo ssh commands run as connecting user.
R. Steve McKown [Mon, 24 Sep 2012 02:52:58 +0000 (20:52 -0600)]
Ensure non-repo ssh commands run as connecting user.

11 years agoFix getting a shell on server
R. Steve McKown [Mon, 24 Sep 2012 02:46:49 +0000 (20:46 -0600)]
Fix getting a shell on server

11 years agoAdd version option, derived from repository tags 0.1
R. Steve McKown [Mon, 24 Sep 2012 01:26:45 +0000 (19:26 -0600)]
Add version option, derived from repository tags

11 years agoSome support for a future git acl implementation.
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.

11 years agoAdd Makefile and README
R. Steve McKown [Sun, 23 Sep 2012 18:54:36 +0000 (12:54 -0600)]
Add Makefile and README

11 years agoAdd support for /etc/repo_shell.cfg
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

11 years agoExecute shell progs with user PATH
R. Steve McKown [Sun, 23 Sep 2012 17:55:19 +0000 (11:55 -0600)]
Execute shell progs with user PATH

11 years agoAdd git prefix to repository paths
R. Steve McKown [Sun, 23 Sep 2012 17:54:41 +0000 (11:54 -0600)]
Add git prefix to repository paths

11 years agoInitial commit
R. Steve McKown [Sun, 23 Sep 2012 17:44:27 +0000 (11:44 -0600)]
Initial commit