summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalmrsync2
1 files changed, 1 insertions, 1 deletions
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"