scripts

random scripts
git clone git://parazyd.org/scripts.git
Log | Files | Refs

commit b6be3babdf028e95aa8995ad59467db424ebb1d1
parent 6a0ce1e51ab2c837f52dd6384e01d022e95825fa
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 17 Jun 2016 12:30:01 +0200

support unlisted repos

Diffstat:
Maddrepo.sh | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/addrepo.sh b/addrepo.sh @@ -12,6 +12,13 @@ repoowner=`awk '/name =/ {print $3}' ~/.gitconfig` writeconf() { + if [[ $repodesc == "unlisted" || $repodesc == "private" ]]; then + cat <<EOF +repo $reponame + RW = $repoowner + +EOF + else cat <<EOF repo $reponame RW+ = $repoowner @@ -21,6 +28,7 @@ repo $reponame config gitweb.owner = "${repoowner}" EOF + fi } if [[ -n $reponame ]] && [[ -n $repodesc ]]; then