commit 91b6de13e7b67d81f1635a0015b071883f2e7a0d
parent 76e3a65db41d1d8d6b3bb6d590aca1e8faac1ed3
Author: kst
Date: 2020-07-17 22:53Z

fix default clone url

Diffstat:
Mgrm | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/grm b/grm @@ -104,7 +104,7 @@ grm_new() { printf "%b%s%b\n> " \ "${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" @@ -122,7 +122,6 @@ grm_new() { ln -sf "$postrecv_path" "$repo_path/hooks/post-receive" echo "installing post-update hook for updating server info..." mv "$repo_path/hooks/post-update.sample" "$repo_path/hooks/post-update" - echo "updating server info for the first time..." git -C "$repo_path" update-server-info