drist

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

commit 4fb0fd95c203101918cd832d3a1e21810ad6c46f
parent f8ef75116852bca7c9529939b4ccef9ec79b7a54
Author: pyratebeard <root@pyratebeard.net>
Date:   Sat, 30 Apr 2022 11:51:01 +0100

specify alternative branch for HEAD

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