git-server-docker-stagit

git-server-with-stagit
git clone git://git.andersuno.nu/git-server-docker-stagit.git
Log | Files | Refs | README

commit 168c8a4c14ff9928f65867b41d6efdf62f8a3b95
parent 6adcf8899a246704aee4fa763361276f7ff58cd0
Author: Anders <anders.hedman01@gmail.com>
Date:   Sun,  1 May 2022 16:05:48 +0200

new-repo for git-shell

Diffstat:
Agit-shell-commands/new-repo | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/git-shell-commands/new-repo b/git-shell-commands/new-repo @@ -0,0 +1,5 @@ +#!/bin/sh +[[ -z $1 ]] && echo "No name provided" && exit 1 +mkdir -p /git-server/repos/$1.git +cd /git-server/repos/$1.git +git init --bare