From 458cd0c185549deb869fa6abe172b577596251dd Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 18 Apr 2017 11:15:26 +0200 Subject: Improve documentation for adding user (and drop undocumented user as 4th argument). --- localgit-remote-init-push | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'localgit-remote-init-push') 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 -- cgit v1.2.3