From: "Shawn O. Pearce" <spearce@spearce.org>
To: Chris Packham <judge.packham@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: ssh username environment variable
Date: Fri, 8 Jan 2010 12:29:58 -0800 [thread overview]
Message-ID: <20100108202958.GL32155@spearce.org> (raw)
In-Reply-To: <a038bef51001081224l33164526y51e5ca064b82b73a@mail.gmail.com>
Chris Packham <judge.packham@gmail.com> wrote:
> Just wondering if there is an environment variable I can use to tell
> git or ssh what user name to use for the ssh transport?
No. But you can hack around it:
cat >$HOME/bin/git-ssh
#!/bin/sh
ssh -l $GIT_SSH_USER "$@"
^D
GIT_SSH=$HOME/bin/git-ssh GIT_SSH_USER=myname git clone ...
--
Shawn.
next prev parent reply other threads:[~2010-01-08 20:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-08 20:24 ssh username environment variable Chris Packham
2010-01-08 20:29 ` Shawn O. Pearce [this message]
2010-01-08 20:34 ` Junio C Hamano
2010-01-08 20:37 ` Chris Packham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100108202958.GL32155@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=judge.packham@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).