threads / discuss / 12538

"bash: git-upload-pack: command not found" ??

Subject: "bash: git-upload-pack: command not found" ??

## tl;dr

4 messages between Mar 6, 2008 and Mar 6, 2008.

replies: 3people: 2as markdown or json

Oliver Kullmann· Mar 6, 2008, 11:06 UTC · lore
Hello,
when using
Transitional> git pull ssh://user@host.xz/~/path/to/Transitional master
on a remote machine I get

Password: bash: git-upload-pack: command not found fatal: The remote end hung up unexpectedly

On both machines I have version 1.5.4.3 installed, but this behaviour was never different in the past (I'm using git for 8 months; to circumvent the error I always created a copy of the remote repository and then pulled locally).

It might be some path issue, but I don't find anything in the documentation on how to instruct the remote machine where actually to find git.

Hope that somebody can enable me to use "git pull" as it should be.
Oliver
Uwe Kleine-König· Mar 6, 2008, 12:47 UTC · re: Oliver Kullmann · lore

Re: "bash: git-upload-pack: command not found" ??

Hello,
Oliver Kullmann wrote:
Show 11 quoted lines
> Hello,
> 
> when using
> 
> Transitional> git pull ssh://user@host.xz/~/path/to/Transitional master
> 
> on a remote machine I get
> 
> Password:
> bash: git-upload-pack: command not found
> fatal: The remote end hung up unexpectedly

Where is git-upload-pack on the server machine? Where do you set your PATH to include $(basedir git-upload-pack). Does

	git pull --upload-pack /path/to/git-upload-pack ...
help?

Best regards Uwe

-- 
Uwe Kleine-König
Oliver Kullmann· Mar 6, 2008, 13:54 UTC · re: Uwe Kleine-König · lore

Re: "bash: git-upload-pack: command not found" ??

On Thu, Mar 06, 2008 at 01:47:10PM +0100, Uwe Kleine-König wrote:
Show 15 quoted lines
> Hello,
> 
> Oliver Kullmann wrote:
> > Hello,
> > 
> > when using
> > 
> > Transitional> git pull ssh://user@host.xz/~/path/to/Transitional master
> > 
> > on a remote machine I get
> > 
> > Password:
> > bash: git-upload-pack: command not found
> > fatal: The remote end hung up unexpectedly
> Where is git-upload-pack on the server machine?
In the same directory as git, in /usr/local/bin/
>  Where do you set your
> PATH to include $(basedir git-upload-pack).

Hm, it's set "nowhere". Likely that's the problem: For a standard-user the path includes the git-directory, but not for the git-user.

Show 6 quoted lines
>  Does 
> 
> 	git pull --upload-pack /path/to/git-upload-pack ...
> 
> help?
>

Yes! That solves it (I won't fiddle around with the path settings, since I have also local installs etc., and that additional specification does the job).

Thanks!
Oliver
 
-- 
Dr. Oliver Kullmann
Computer Science Department
Swansea University
Faraday Building, Singleton Park
Swansea SA2 8PP, UK
http://cs.swan.ac.uk/~csoliver/
Uwe Kleine-König· Mar 6, 2008, 19:57 UTC · re: Oliver Kullmann · lore

Re: "bash: git-upload-pack: command not found" ??

Hallo Oliver,
Oliver Kullmann wrote:
Show 10 quoted lines
> >  Does 
> > 
> > 	git pull --upload-pack /path/to/git-upload-pack ...
> > 
> > help?
> >
> 
> Yes! That solves it (I won't fiddle around with the path settings,
> since I have also local installs etc., and that additional specification
> does the job).

Then you might like the config variables remote.<name>.uploadpack and remote.<name>.receivepack.

Best regards, Uwe

-- 
Uwe Kleine-König

← back to recent threads