From a3393bf3cf04f24c8a45b9e7aabbe6131db0f7a5 Mon Sep 17 00:00:00 2001 From: George Abbott Date: Sat, 11 Nov 2023 15:41:54 +0000 Subject: Update init-cgit --- web/init-cgit | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web') diff --git a/web/init-cgit b/web/init-cgit index 994b407..8c21d06 100755 --- a/web/init-cgit +++ b/web/init-cgit @@ -6,6 +6,7 @@ # $1 = name of repo - I guess we could get this from the cwd maybe?. # $2 = description to override repo/description with. # $3 = if necessary, a branch to use if not master. +# The local must have a git repo already. if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then echo "init-cgit NAME DESCRIPTION" @@ -37,4 +38,6 @@ if [ -z "$3" ] ; then BRANCH=master else BRANCH="$3" +fi + git push "$REMOTE_NAME" "$BRANCH" -- cgit v1.2.1