From: "Shawn O. Pearce" <spearce@spearce.org>
To: "Uwe Kleine-König" <zeisberg@informatik.uni-freiburg.de>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>, git@vger.kernel.org
Subject: Re: [PATCH RFC] new config option remote.<name>.pushexec
Date: Tue, 16 Jan 2007 15:08:47 -0500 [thread overview]
Message-ID: <20070116200847.GB29100@spearce.org> (raw)
In-Reply-To: <20070116162645.GA18894@informatik.uni-freiburg.de>
Uwe Kleine-K?nig <zeisberg@informatik.uni-freiburg.de> wrote:
> Exactly. Quoting git-send-pack(1):
>
> Path to the git-receive-pack program on the remote end.
> Sometimes useful when pushing to a remote repository over ssh,
> and you do not have the program in a directory on the default
> $PATH.
>
> For me it would be:
>
> pushexec = /home/zeisberg/usr/bin/git-receive-pack
>
> While having /home/zeisberg/usr/bin only in my PATH for interactive
> shells. (Yes I know I could expand my PATH which .<someshrc>, but I'd
> prefer it that way.)
Some of us have UNIX accounts where our shell is the (retarded)
/usr/bin/ksh on Solaris. And where the SSH daemon won't seem to
let us set PATH, and where Git isn't in the PATH. This leaves
us with some difficulty in pointing Git at itself on the remote
system.
I've worked around it with a GIT_SSH wrapper, e.g.
$ cat >~/bin/mygitssh.sh
#!/bin/sh
host="$1"; shift
exec ssh "$host" "PATH=\"/path/to/git:\$PATH\"; exec $@"
^D
$ chmod 755 ~/bin/mygitssh.sh
$ export GIT_SSH=~/bin/mygitssh.sh
Being able to just set pushexec and fetchexec in the .git/config
file would be nice, but GIT_SSH works well for my sad needs.
--
Shawn.
next prev parent reply other threads:[~2007-01-16 20:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-16 15:02 [PATCH RFC] new config option remote.<name>.pushexec Uwe Kleine-König
2007-01-16 15:16 ` Johannes Schindelin
2007-01-16 16:26 ` Uwe Kleine-König
2007-01-16 17:37 ` How to merge FETCH_HEAD? Michael S. Tsirkin
2007-01-16 19:59 ` Shawn O. Pearce
2007-01-16 21:33 ` Michael S. Tsirkin
2007-01-16 21:36 ` Johannes Schindelin
2007-01-17 5:09 ` Michael S. Tsirkin
2007-01-17 6:14 ` Junio C Hamano
2007-01-17 6:33 ` Michael S. Tsirkin
2007-01-16 20:15 ` Junio C Hamano
2007-01-16 20:08 ` Shawn O. Pearce [this message]
2007-01-16 20:30 ` [PATCH RFC] new config option remote.<name>.pushexec Johannes Schindelin
2007-01-17 16:44 ` Uwe Kleine-König
2007-01-17 17:32 ` Junio C Hamano
2007-01-18 7:17 ` Uwe Kleine-König
2007-01-25 4:45 ` [PATCH] make --upload-pack option to git-fetch configurable Uwe Kleine-König
2007-01-25 4:53 ` Uwe Kleine-König
2007-01-16 16:27 ` [PATCH RFC] new config option remote.<name>.pushexec Brian Gernhardt
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=20070116200847.GB29100@spearce.org \
--to=spearce@spearce.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=zeisberg@informatik.uni-freiburg.de \
/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).