Re: Unable to clone an ssh repository (with ugly installation-specific workaround)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Johannes Sixt <j.sixt@...>, Jakub Narebski <jnareb@...>, <git@...>
Date: Wednesday, February 13, 2008 - 8:57 am

On Feb 12, 2008 3:30 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

As far as I can tell, setting paths in .bashrc doesn't really work (or
else I'm just doing it wrong).  If it did, I would have never hit this
bug.  Observe the difference between (feel free to replace PATH with
GIT_EXEC_PATH; same general result occurs):

  $ ssh localhost
  # Wait for connection to be made, then run
  $ echo $PATH

AND

  $ ssh localhost 'echo $PATH'

AND

  $ ssh localhost 'source .bashrc
  echo $PATH'

The first and the third give the same result, but the second gives
something different.  It is the second form that git uses, meaning
that my paths never get set up.

In my little git wrapper script, I put in some code to work around
this little issue and find git-upload-pack for the user if it can (by
ssh'ing to the machine and sourcing their .bashrc in the ssh command
if necessary; might be a hack, but it makes things nicer for me than
always specifying the -u flag).

Cheers,
Elijah
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Unable to clone an ssh repository (with ugly installatio..., Johannes Schindelin, (Tue Feb 12, 6:30 am)
Re: Unable to clone an ssh repository (with ugly installatio..., Elijah Newren, (Wed Feb 13, 8:57 am)
Re: Unable to clone an ssh repository (with ugly installatio..., Stephen Sinclair, (Wed Feb 13, 10:17 am)
[PATCH] upload-pack: Initialize the exec-path., Johannes Sixt, (Tue Feb 12, 7:28 am)
Re: [PATCH] upload-pack: Initialize the exec-path., Johannes Schindelin, (Tue Feb 12, 7:49 am)
Re: [PATCH] upload-pack: Initialize the exec-path., Johannes Schindelin, (Tue Feb 12, 8:45 am)
Re: [PATCH] upload-pack: Initialize the exec-path., Elijah Newren, (Wed Feb 13, 9:00 am)