diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-04-18 12:51:31 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-04-18 12:51:31 +0200 |
commit | 20d29799809f3e3bbf1824a0cd73c4a668e8c5cb (patch) | |
tree | edf1565aec057b24a6abba6847b549cf59724328 /localgit-remote-init-push | |
parent | 269bc4af0abab2c51eb2b42665a3133a2609277b (diff) |
Fix push to non-default remote.
Diffstat (limited to 'localgit-remote-init-push')
-rwxr-xr-x | localgit-remote-init-push | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localgit-remote-init-push b/localgit-remote-init-push index 6234cbe..5d8efd5 100755 --- a/localgit-remote-init-push +++ b/localgit-remote-init-push @@ -70,4 +70,4 @@ GIT_REMOTE=${4:-origin} [ -z "$SSH_CONN" ] || ssh "$SSH_CONN" git init --bare --shared "$BASEPATH"/"$PROJECT".git git remote add "$GIT_REMOTE" "$SSH_CONN":"$BASEPATH"/"$PROJECT".git -git push ${ORIGIN_IS_DEFAULT:+--set-upstream "$GIT_REMOTE"} master +git push ${ORIGIN_IS_DEFAULT:+--set-upstream} "$GIT_REMOTE" master |