From b02ba8ab80f5323250c629fbf55af9b036196529 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 20 Jul 2020 04:13:18 +0200 Subject: readme --- Readme.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Readme.md b/Readme.md index 999d30a..64f5c5b 100644 --- a/Readme.md +++ b/Readme.md @@ -4,15 +4,21 @@ Script for juggling git repos ## gitwrapper.sh -Its main purpose is to create a new empty repo if a push to a non-existent one is requested. -It is intended to be used with `command=` option in `.ssh/authorized_keys`. -As a side effect, it also implements a crude access control via SSH keys. -The first argument is the folder this specific key is allowed to push to. - -If the command invoked by the ssh client is not `git upload-pack`, it is executed without further checking, -if none is supplied bash starts in interactive mode. -This would allow anyone to easily override the push restrictions, -so they should be seen as a fuck-up-preventer, not a security measure. +gitwrapper.sh automatically creates repositories if they are pushed for the first time. +If a non-existent repo is pulled, an empty one is sent instead. + +This allows for easy creation of new repos by just cloning any name, creating a first commit, +and then pushing.git@git:jonas/toybox.git + +`gitwrapper.sh OPTIONS` is set as a command in `.ssh/authorized_keys` + +#### Options + + gitwrapper.sh OPTIONS + -r Allow pull from DIR + -w Allow push to DIR + -a Allow push/pull from/to DIR + -i Allow inetractive Login ## reposync.sh -- cgit v1.2.3