# What am I doing wrong?

13 messages from 2008-05-16 to 2008-05-16. Participants: Paul Gardiner, Michael J Gruber, Johannes Schindelin, Kevin Ballard.
Thread: https://gitlist.dev/t/13544

## Paul Gardiner, 2008-05-16 11:25

Subject: What am I doing wrong?
Message-ID: <482D6F41.2060809@laser-point.co.uk>
URL: https://gitlist.dev/e/482D6F41.2060809%40laser-point.co.uk

```
I create the initial repository with

     git-clone /<full-path>/<name>.git/ <folder>

That works fine, but then I can't fetch. git-fetch gives the error
"fatal: 'origin': unable to chdir or not a git archive"
"fatal: The remote end hung up unexpectedly"

P.

```

## Michael J Gruber, 2008-05-16 11:43

Subject: Re: What am I doing wrong?
Message-ID: <g0js1p$l22$1@ger.gmane.org>
URL: https://gitlist.dev/e/g0js1p%24l22%241%40ger.gmane.org
In-Reply-To: <482D6F41.2060809@laser-point.co.uk>

```
Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
> I create the initial repository with
> 
>      git-clone /<full-path>/<name>.git/ <folder>
> 
> That works fine, but then I can't fetch. git-fetch gives the error
> "fatal: 'origin': unable to chdir or not a git archive"
> "fatal: The remote end hung up unexpectedly"
> 
> P.

Are you trying to clone a bare repository?
Or is your repo maybe at /<full-path>/<name> with a .git subdir?

Michael

```

## Johannes Schindelin, 2008-05-16 12:23

Subject: Re: What am I doing wrong?
Message-ID: <alpine.DEB.1.00.0805161323240.30431@racer>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0805161323240.30431%40racer
In-Reply-To: <482D6F41.2060809@laser-point.co.uk>

```
Hi,

On Fri, 16 May 2008, Paul Gardiner wrote:

> I create the initial repository with
> 
>     git-clone /<full-path>/<name>.git/ <folder>
> 
> That works fine, but then I can't fetch. git-fetch gives the error
> "fatal: 'origin': unable to chdir or not a git archive"
> "fatal: The remote end hung up unexpectedly"

Did you chdir into <folder> before trying to fetch?

Ciao,
Dscho

```

## Paul Gardiner, 2008-05-16 12:32

Subject: Re: What am I doing wrong?
Message-ID: <482D7EE1.9020503@laser-point.co.uk>
URL: https://gitlist.dev/e/482D7EE1.9020503%40laser-point.co.uk
In-Reply-To: <g0js1p$l22$1@ger.gmane.org>

```
Michael J Gruber wrote:
> Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
>> I create the initial repository with
>>
>>      git-clone /<full-path>/<name>.git/ <folder>
>>
>> That works fine, but then I can't fetch. git-fetch gives the error
>> "fatal: 'origin': unable to chdir or not a git archive"
>> "fatal: The remote end hung up unexpectedly"
>>
>> P.
> 
> Are you trying to clone a bare repository?
> Or is your repo maybe at /<full-path>/<name> with a .git subdir?

Yes, a bare repository.

P.

```

## Paul Gardiner, 2008-05-16 12:34

Subject: Re: What am I doing wrong?
Message-ID: <482D7F3F.4030209@laser-point.co.uk>
URL: https://gitlist.dev/e/482D7F3F.4030209%40laser-point.co.uk
In-Reply-To: <alpine.DEB.1.00.0805161323240.30431@racer>

```
Johannes Schindelin wrote:
> Hi,
> 
> On Fri, 16 May 2008, Paul Gardiner wrote:
> 
>> I create the initial repository with
>>
>>     git-clone /<full-path>/<name>.git/ <folder>
>>
>> That works fine, but then I can't fetch. git-fetch gives the error
>> "fatal: 'origin': unable to chdir or not a git archive"
>> "fatal: The remote end hung up unexpectedly"
> 
> Did you chdir into <folder> before trying to fetch?

Yes, it wasn't that... well to be fair I forgot to chdir
the first time, but it warned me about that.

P.

```

## Michael J Gruber, 2008-05-16 12:43

Subject: Re: What am I doing wrong?
Message-ID: <g0jvig$1dn$1@ger.gmane.org>
URL: https://gitlist.dev/e/g0jvig%241dn%241%40ger.gmane.org
In-Reply-To: <482D7EE1.9020503@laser-point.co.uk>

```
Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:
> Michael J Gruber wrote:
>> Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
>>> I create the initial repository with
>>>
>>>      git-clone /<full-path>/<name>.git/ <folder>
>>>
>>> That works fine, but then I can't fetch. git-fetch gives the error
>>> "fatal: 'origin': unable to chdir or not a git archive"
>>> "fatal: The remote end hung up unexpectedly"
>>>
>>> P.
>> Are you trying to clone a bare repository?
>> Or is your repo maybe at /<full-path>/<name> with a .git subdir?
> 
> Yes, a bare repository.

Then, maybe the full list of command lines (including cd and git-fetch) 
would be helpful in order to track this down.

Michael

```

## Paul Gardiner, 2008-05-16 13:28

Subject: Re: What am I doing wrong?
Message-ID: <482D8BEB.6070706@laser-point.co.uk>
URL: https://gitlist.dev/e/482D8BEB.6070706%40laser-point.co.uk
In-Reply-To: <g0jvig$1dn$1@ger.gmane.org>

```
Michael J Gruber wrote:
> Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:
>> Michael J Gruber wrote:
>>> Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
>>>> I create the initial repository with
>>>>
>>>>      git-clone /<full-path>/<name>.git/ <folder>
>>>>
>>>> That works fine, but then I can't fetch. git-fetch gives the error
>>>> "fatal: 'origin': unable to chdir or not a git archive"
>>>> "fatal: The remote end hung up unexpectedly"
>>>>
>>>> P.
>>> Are you trying to clone a bare repository?
>>> Or is your repo maybe at /<full-path>/<name> with a .git subdir?
>>
>> Yes, a bare repository.
> 
> Then, maybe the full list of command lines (including cd and git-fetch) 
> would be helpful in order to track this down.

Ok, sorry, thought it was probable something really obvious. Here's the
sequence (using git version 1.5.4).

$ git-clone /big/git/paul.git/ epage
Initialized empty Git repository in /home/paul/epage/.git/
719749 bolcks
$ cd epage
$ git-fetch
fatal: 'origin': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly



P.

```

## Johannes Schindelin, 2008-05-16 13:40

Subject: Re: What am I doing wrong?
Message-ID: <alpine.DEB.1.00.0805161439100.30431@racer>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0805161439100.30431%40racer
In-Reply-To: <482D8BEB.6070706@laser-point.co.uk>

```
Hi,

On Fri, 16 May 2008, Paul Gardiner wrote:

> Michael J Gruber wrote:
> > Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:
> > > Michael J Gruber wrote:
> > > > Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
> > > > > I create the initial repository with
> > > > >
> > > > >      git-clone /<full-path>/<name>.git/ <folder>
> > > > >
> > > > > That works fine, but then I can't fetch. git-fetch gives the error
> > > > > "fatal: 'origin': unable to chdir or not a git archive"
> > > > > "fatal: The remote end hung up unexpectedly"
> > > > >
> > > > > P.
> > > > Are you trying to clone a bare repository?
> > > > Or is your repo maybe at /<full-path>/<name> with a .git subdir?
> > >
> > > Yes, a bare repository.
> > 
> > Then, maybe the full list of command lines (including cd and git-fetch)
> > would be helpful in order to track this down.
> 
> Ok, sorry, thought it was probable something really obvious. Here's the
> sequence (using git version 1.5.4).
> 
> $ git-clone /big/git/paul.git/ epage
> Initialized empty Git repository in /home/paul/epage/.git/
> 719749 bolcks

Something tells me that this is not a copy/paste ;-)

> $ cd epage
> $ git-fetch
> fatal: 'origin': unable to chdir or not a git archive
> fatal: The remote end hung up unexpectedly

Is there a "[remote "origin"]" section in .git/config?  What Git version 
is this, anyway?

Ciao,
Dscho

```

## Michael J Gruber, 2008-05-16 14:44

Subject: Re: What am I doing wrong?
Message-ID: <g0k6k7$t4k$1@ger.gmane.org>
URL: https://gitlist.dev/e/g0k6k7%24t4k%241%40ger.gmane.org
In-Reply-To: <alpine.DEB.1.00.0805161439100.30431@racer>

```
Johannes Schindelin venit, vidit, dixit 16.05.2008 15:40:
> Hi,
> 
> On Fri, 16 May 2008, Paul Gardiner wrote:
> 
>> Michael J Gruber wrote:
>>> Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:
>>>> Michael J Gruber wrote:
>>>>> Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
>>>>>> I create the initial repository with
>>>>>>
>>>>>>      git-clone /<full-path>/<name>.git/ <folder>
>>>>>>
>>>>>> That works fine, but then I can't fetch. git-fetch gives the error
>>>>>> "fatal: 'origin': unable to chdir or not a git archive"
>>>>>> "fatal: The remote end hung up unexpectedly"
>>>>>>
>>>>>> P.
>>>>> Are you trying to clone a bare repository?
>>>>> Or is your repo maybe at /<full-path>/<name> with a .git subdir?
>>>> Yes, a bare repository.
>>> Then, maybe the full list of command lines (including cd and git-fetch)
>>> would be helpful in order to track this down.
>> Ok, sorry, thought it was probable something really obvious. Here's the
>> sequence (using git version 1.5.4).
>>
>> $ git-clone /big/git/paul.git/ epage
>> Initialized empty Git repository in /home/paul/epage/.git/
>> 719749 bolcks
> 
> Something tells me that this is not a copy/paste ;-)

Let's just hope that's not units of boelkstoff ;)

>> $ cd epage
>> $ git-fetch
>> fatal: 'origin': unable to chdir or not a git archive
>> fatal: The remote end hung up unexpectedly
> 
> Is there a "[remote "origin"]" section in .git/config?  What Git version 
> is this, anyway?

1.5.4

Could git trip over that trailing slash? git 1.5.5.1 certainly doesn't.

BTW: The above shows something that confused me initially about cloning: 
git reports the creation of an empty repo, nothing else. But it does 
much more, of course, just without reporting.

Michael

```

## Paul Gardiner, 2008-05-16 14:56

Subject: Re: What am I doing wrong?
Message-ID: <482DA0AE.1030301@laser-point.co.uk>
URL: https://gitlist.dev/e/482DA0AE.1030301%40laser-point.co.uk
In-Reply-To: <alpine.DEB.1.00.0805161439100.30431@racer>

```
Johannes Schindelin wrote:
> Hi,
> 
> On Fri, 16 May 2008, Paul Gardiner wrote:
> 
>> Michael J Gruber wrote:
>>> Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:
>>>> Michael J Gruber wrote:
>>>>> Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
>>>>>> I create the initial repository with
>>>>>>
>>>>>>      git-clone /<full-path>/<name>.git/ <folder>
>>>>>>
>>>>>> That works fine, but then I can't fetch. git-fetch gives the error
>>>>>> "fatal: 'origin': unable to chdir or not a git archive"
>>>>>> "fatal: The remote end hung up unexpectedly"
>>>>>>
>>>>>> P.
>>>>> Are you trying to clone a bare repository?
>>>>> Or is your repo maybe at /<full-path>/<name> with a .git subdir?
>>>> Yes, a bare repository.
>>> Then, maybe the full list of command lines (including cd and git-fetch)
>>> would be helpful in order to track this down.
>> Ok, sorry, thought it was probable something really obvious. Here's the
>> sequence (using git version 1.5.4).
>>
>> $ git-clone /big/git/paul.git/ epage
>> Initialized empty Git repository in /home/paul/epage/.git/
>> 719749 bolcks
> 
> Something tells me that this is not a copy/paste ;-)

The "big" bit you mean? :-) It just happened to be the name
chosen for the mount of a large disc when added to the
server.

>> $ cd epage
>> $ git-fetch
>> fatal: 'origin': unable to chdir or not a git archive
>> fatal: The remote end hung up unexpectedly
> 
> Is there a "[remote "origin"]" section in .git/config?  What Git version 
> is this, anyway?

No, not in /home/paul/epage/.git/config. There's just a [core] section. 
I guess that's the problem. I thought git-clone set that up automatically.

It's v1.5.4

P.

```

## Kevin Ballard, 2008-05-16 17:17

Subject: Re: What am I doing wrong?
Message-ID: <A1C7509B-20DC-430F-9DB4-A55FC796429E@sb.org>
URL: https://gitlist.dev/e/A1C7509B-20DC-430F-9DB4-A55FC796429E%40sb.org
In-Reply-To: <482DA0AE.1030301@laser-point.co.uk>

```
On May 16, 2008, at 10:56 AM, Paul Gardiner wrote:

>>> Ok, sorry, thought it was probable something really obvious.  
>>> Here's the
>>> sequence (using git version 1.5.4).
>>>
>>> $ git-clone /big/git/paul.git/ epage
>>> Initialized empty Git repository in /home/paul/epage/.git/
>>> 719749 bolcks
>> Something tells me that this is not a copy/paste ;-)
>
> The "big" bit you mean? :-) It just happened to be the name
> chosen for the mount of a large disc when added to the
> server.

No, I think it's the "bolcks" :P

-Kevin Ballard

-- 
Kevin Ballard
http://kevin.sb.org
kevin@sb.org
http://www.tildesoft.com

```

## Paul Gardiner, 2008-05-16 21:11

Subject: Re: What am I doing wrong?
Message-ID: <482DF890.2020502@laser-point.co.uk>
URL: https://gitlist.dev/e/482DF890.2020502%40laser-point.co.uk
In-Reply-To: <A1C7509B-20DC-430F-9DB4-A55FC796429E@sb.org>

```
Kevin Ballard wrote:
> On May 16, 2008, at 10:56 AM, Paul Gardiner wrote:
> 
>>>> Ok, sorry, thought it was probable something really obvious. Here's the
>>>> sequence (using git version 1.5.4).
>>>>
>>>> $ git-clone /big/git/paul.git/ epage
>>>> Initialized empty Git repository in /home/paul/epage/.git/
>>>> 719749 bolcks
>>> Something tells me that this is not a copy/paste ;-)
>>
>> The "big" bit you mean? :-) It just happened to be the name
>> chosen for the mount of a large disc when added to the
>> server.
> 
> No, I think it's the "bolcks" :P

:-) Oh yeah, I left two letters out!

P.

```

## Paul Gardiner, 2008-05-16 21:16

Subject: Re: What am I doing wrong?
Message-ID: <482DF9BA.1080508@laser-point.co.uk>
URL: https://gitlist.dev/e/482DF9BA.1080508%40laser-point.co.uk
In-Reply-To: <g0k6k7$t4k$1@ger.gmane.org>

```
Michael J Gruber wrote:
> Johannes Schindelin venit, vidit, dixit 16.05.2008 15:40:
>> Hi,
>>
>> On Fri, 16 May 2008, Paul Gardiner wrote:
>>
>>> Michael J Gruber wrote:
>>>> Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:
>>>>> Michael J Gruber wrote:
>>>>>> Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
>>>>>>> I create the initial repository with
>>>>>>>
>>>>>>>      git-clone /<full-path>/<name>.git/ <folder>
>>>>>>>
>>>>>>> That works fine, but then I can't fetch. git-fetch gives the error
>>>>>>> "fatal: 'origin': unable to chdir or not a git archive"
>>>>>>> "fatal: The remote end hung up unexpectedly"
>>>>>>>
>>>>>>> P.
>>>>>> Are you trying to clone a bare repository?
>>>>>> Or is your repo maybe at /<full-path>/<name> with a .git subdir?
>>>>> Yes, a bare repository.
>>>> Then, maybe the full list of command lines (including cd and git-fetch)
>>>> would be helpful in order to track this down.
>>> Ok, sorry, thought it was probable something really obvious. Here's the
>>> sequence (using git version 1.5.4).
>>>
>>> $ git-clone /big/git/paul.git/ epage
>>> Initialized empty Git repository in /home/paul/epage/.git/
>>> 719749 bolcks
>>
>> Something tells me that this is not a copy/paste ;-)
> 
> Let's just hope that's not units of boelkstoff ;)
> 
>>> $ cd epage
>>> $ git-fetch
>>> fatal: 'origin': unable to chdir or not a git archive
>>> fatal: The remote end hung up unexpectedly
>>
>> Is there a "[remote "origin"]" section in .git/config?  What Git 
>> version is this, anyway?
> 
> 1.5.4
> 
> Could git trip over that trailing slash? git 1.5.5.1 certainly doesn't.

The documentation suggests having the trailing slash, and I think I
tried without, but I'll try again just in case.

> BTW: The above shows something that confused me initially about cloning: 
> git reports the creation of an empty repo, nothing else. But it does 
> much more, of course, just without reporting.

Oh yeah, I realise the fetch is already done by the clone, and that
git-fetch wouldn't bring anything new in right after the clone, but
there are other pushers for that repo.

P.

```
