git_infra

Git infra scripts for git.bracken.jp
git clone https://git.bracken.jp/git_infra.git
Log | Files | Refs | LICENSE

commit 1530403e7f9d6d4cf26fe9b9b3400ac93b7c3857
parent ec364275f0065d67e2343d306fa7c3fec6528974
Author: Chris Bracken <chris@bracken.jp>
Date:   Tue,  7 Jun 2022 16:48:21 -0700

Use https for default clone URL

Also clarifies that a trailing '.git' is not needed and will be added
automatically.

Diffstat:
Mgrm | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/grm b/grm @@ -12,7 +12,7 @@ GRM_REPOS_ROOT="/home/git" GRM_OWNER="Chris Bracken" # default url prefix (without ending slash) -GRM_URL_PREFIX="git://git.bracken.jp" +GRM_URL_PREFIX="https://git.bracken.jp" # path of the post-receive hooks for stagit GRM_POSTRECV_HOOK="/home/git/git_infra/post-receive" @@ -86,7 +86,7 @@ grm_new() { url_prefix=${GRM_URL_PREFIX:-git://$(hostname -f)} default_desc="a work in progress" - printf "%b\n> " "${BLUE}repo name${RESET}" + printf "%b\n> " "${BLUE}repo name (without trailing .git)${RESET}" read -r repo_name [ -z "$repo_name" ] && \ { echo "no repo name given, exiting..."; exit 1; } @@ -118,9 +118,9 @@ ${BLUE}enter index [default: ${GREEN}1${BLUE}]${RESET}" owner=${owner:-$default_owner} printf "%b%s%b\n> " \ - "${BLUE}clone url [${GREEN}" "$url_prefix/$repo_name" "${BLUE}]${RESET}" + "${BLUE}clone url [${GREEN}" "$url_prefix/$repo_name.git" "${BLUE}]${RESET}" read -r clone_url - clone_url=${clone_url:-$url_prefix/$repo_name} + clone_url=${clone_url:-$url_prefix/$repo_name}.git # start creating repo git init --bare "$repo_path"