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

4 messages from 2008-03-06 to 2008-03-06. Participants: Oliver Kullmann, Uwe Kleine-König.
Thread: https://gitlist.dev/t/12538

## Oliver Kullmann, 2008-03-06 11:06

Subject: "bash: git-upload-pack: command not found" ??
Message-ID: <20080306110600.GA925@cs-wsok.swansea.ac.uk>
URL: https://gitlist.dev/e/20080306110600.GA925%40cs-wsok.swansea.ac.uk

```
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, 2008-03-06 12:47

Subject: Re: "bash: git-upload-pack: command not found" ??
Message-ID: <20080306124710.GA10266@informatik.uni-freiburg.de>
URL: https://gitlist.dev/e/20080306124710.GA10266%40informatik.uni-freiburg.de
In-Reply-To: <20080306110600.GA925@cs-wsok.swansea.ac.uk>

```
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?  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, 2008-03-06 13:54

Subject: Re: "bash: git-upload-pack: command not found" ??
Message-ID: <20080306135456.GG925@cs-wsok.swansea.ac.uk>
URL: https://gitlist.dev/e/20080306135456.GG925%40cs-wsok.swansea.ac.uk
In-Reply-To: <20080306124710.GA10266@informatik.uni-freiburg.de>

```
On Thu, Mar 06, 2008 at 01:47:10PM +0100, Uwe Kleine-König wrote:
> 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.

>  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, 2008-03-06 19:57

Subject: Re: "bash: git-upload-pack: command not found" ??
Message-ID: <20080306195743.GA1614@informatik.uni-freiburg.de>
URL: https://gitlist.dev/e/20080306195743.GA1614%40informatik.uni-freiburg.de
In-Reply-To: <20080306135456.GG925@cs-wsok.swansea.ac.uk>

```
Hallo Oliver,

Oliver Kullmann wrote:
> >  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


```
