diff options
-rwxr-xr-x | localgit-remote-init-push | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/localgit-remote-init-push b/localgit-remote-init-push index 5d8efd5..c581bde 100755 --- a/localgit-remote-init-push +++ b/localgit-remote-init-push @@ -68,6 +68,7 @@ GIT_REMOTE=${4:-origin} [ origin != "$GIT_REMOTE" ] || ORIGIN_IS_DEFAULT=yes -[ -z "$SSH_CONN" ] || ssh "$SSH_CONN" git init --bare --shared "$BASEPATH"/"$PROJECT".git +# TODO: handle /~ BASEPATH specially and stop blindly ignore any error +[ -z "$SSH_CONN" ] || ssh "$SSH_CONN" git init --bare --shared "$BASEPATH"/"$PROJECT".git || true git remote add "$GIT_REMOTE" "$SSH_CONN":"$BASEPATH"/"$PROJECT".git git push ${ORIGIN_IS_DEFAULT:+--set-upstream} "$GIT_REMOTE" master |