threads / discuss / 13544

What am I doing wrong?

Subject: What am I doing wrong?

## tl;dr

13 messages between May 16, 2008 and May 16, 2008.

replies: 12people: 4as markdown or json

Paul Gardiner· May 16, 2008, 11:25 UTC · lore
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· May 16, 2008, 11:43 UTC · re: Paul Gardiner · lore

Re: What am I doing wrong?

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:
Show 9 quoted lines
> 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
Paul Gardiner· May 16, 2008, 12:32 UTC · re: Michael J Gruber · lore

Re: What am I doing wrong?

Michael J Gruber wrote:
Show 13 quoted lines
> 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.
Michael J Gruber· May 16, 2008, 12:43 UTC · re: Paul Gardiner · lore

Re: What am I doing wrong?

Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:
Show 15 quoted lines
> 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· May 16, 2008, 13:28 UTC · re: Michael J Gruber · lore

Re: What am I doing wrong?

Michael J Gruber wrote:
Show 19 quoted lines
> 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· May 16, 2008, 13:40 UTC · re: Paul Gardiner · lore

Re: What am I doing wrong?

Hi,
On Fri, 16 May 2008, Paul Gardiner wrote:
Show 27 quoted lines
> 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· May 16, 2008, 14:44 UTC · re: Johannes Schindelin · lore

Re: What am I doing wrong?

Johannes Schindelin venit, vidit, dixit 16.05.2008 15:40:
Show 30 quoted lines
> 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 ;)
Show 7 quoted lines
>> $ 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· May 16, 2008, 21:16 UTC · re: Michael J Gruber · lore

Re: What am I doing wrong?

Michael J Gruber wrote:
Show 45 quoted lines
> 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.
Paul Gardiner· May 16, 2008, 14:56 UTC · re: Johannes Schindelin · lore

Re: What am I doing wrong?

Johannes Schindelin wrote:
Show 30 quoted lines
> 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.

Show 7 quoted lines
>> $ 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· May 16, 2008, 17:17 UTC · re: Paul Gardiner · lore

Re: What am I doing wrong?

On May 16, 2008, at 10:56 AM, Paul Gardiner wrote:
Show 12 quoted lines
>>> 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· May 16, 2008, 21:11 UTC · re: Kevin Ballard · lore

Re: What am I doing wrong?

Kevin Ballard wrote:
Show 15 quoted lines
> 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.
Johannes Schindelin· May 16, 2008, 12:23 UTC · re: Paul Gardiner · lore

Re: What am I doing wrong?

Hi,
On Fri, 16 May 2008, Paul Gardiner wrote:
Show 7 quoted lines
> 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· May 16, 2008, 12:34 UTC · re: Johannes Schindelin · lore

Re: What am I doing wrong?

Johannes Schindelin wrote:
Show 13 quoted lines
> 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.

← back to recent threads