From 980ff168e3b73e7977f263013649044214e8bd7f Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 30 May 2019 13:38:35 +0200 Subject: Fix strip optional suffix ".git". --- localmrsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localmrsync b/localmrsync index b34e7ca..a4d4a4f 100755 --- a/localmrsync +++ b/localmrsync @@ -42,7 +42,7 @@ for dir in "$@"; do mr reg fi host=$(echo "$url" | sed -e 's/:.*//') - path=$(echo "$url" | sed -e 's/.*://') + path=$(echo "$url" | sed -e 's/.*://' -e 's/\.git$//') if ! ssh "$host" test -d "$path.git"; then ssh "$host" mkdir -p "$(dirname "$path")" ssh "$host" git init --bare "$path.git" -- cgit v1.2.3