summaryrefslogtreecommitdiff
path: root/localgit-remote-init-push
diff options
context:
space:
mode:
Diffstat (limited to 'localgit-remote-init-push')
-rwxr-xr-xlocalgit-remote-init-push4
1 files changed, 2 insertions, 2 deletions
diff --git a/localgit-remote-init-push b/localgit-remote-init-push
index 41c1bae..e171b8e 100755
--- a/localgit-remote-init-push
+++ b/localgit-remote-init-push
@@ -15,7 +15,7 @@ Initialize remote git, push local git, and set as default remote.
GIT_HOST hostname for public git access
default: "source." + current domainname
- SSH_CONN hostname for ssh, optionally with user prepended
+ SSH_CONN hostname for ssh, optionally with user + "@" prepended
default: GIT_HOST
Full remote path becomes SSH_USER@SSH_HOST:/srv/git/GIT_HOST/PROJECT.git
@@ -45,7 +45,7 @@ done
PROJECT=${1-$(showhelp; exit1 "project name missing")}
GIT_HOST=${2:-source.$(dnsdomainname --domain)}
-SSH_CONN=${4:+$4@}${3:-$GIT_HOST}
+SSH_CONN=${3:-$GIT_HOST}
ssh "$SSH_CONN" git init --bare --shared /srv/git/"$GIT_HOST"/"$PROJECT".git
git remote add origin "$SSH_CONN":/srv/git/"$GIT_HOST"/"$PROJECT".git