drist

collection of scripts for use with drist
git clone git://git.pyratebeard.net/drist.git
Log | Files | Refs | README

commit 2448739590dabc1f07cd8051cce09ae3c37f016c
parent b52254460c777268064f3dbcf4872f66cdc80d6b
Author: pyratebeard <root@pyratebeard.net>
Date:   Sat, 30 Apr 2022 11:52:05 +0100

Merge branch 'stagit'

Diffstat:
Mstagit/files/new_repo | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/stagit/files/new_repo b/stagit/files/new_repo @@ -6,10 +6,12 @@ DESC="$2" URL="git://git.pyratebeard.net/${REPO}" REPODIR="/srv/git" -test $3 && BRANCH=$3 || BRANCH="main" +#test $3 && BRANCH=$3 || BRANCH="main" +echo "branch? (main)" ; read BRANCH +[ -z ${BRANCH} ] && BRANCH="main" sudo mkdir ${REPODIR}/${REPO} && cd ${REPODIR}/${REPO} -sudo git init --bare +sudo git init -b ${BRANCH} --bare echo "${OWNER}" | sudo tee ./owner echo "${DESC}" | sudo tee ./description