Skip to contentSkip to conversation

What am I doing wrong?

DISCUSSION Paul Gardiner 4 participants 13 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

Hi,

Quoted 7 lines · Paul Gardiner

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

#2 lore raw
Quoted 6 lines · Johannes Schindelin

Hi,

Quoted 2 lines · Paul Gardiner

I create the initial repository with

Quoted 7 lines
Quoted 5 lines
    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.

#3 lore raw
In reply to Paul Gardiner

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:

Quoted 9 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

#4 lore raw
Quoted 5 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:

Quoted 4 lines

I create the initial repository with

     git-clone /<full-path>/<name>.git/ <folder>
Quoted 8 lines
Quoted 5 lines

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.

#5 lore raw

Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:

Quoted 10 lines
Quoted 9 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:

Quoted 8 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"

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

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

#6 lore raw
Quoted 11 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:

Quoted 10 lines
Quoted 9 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:

Quoted 8 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"

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

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.

#7 lore raw

Hi,

Quoted 21 lines · Paul Gardiner
Quoted 11 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:

Quoted 10 lines
Quoted 9 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:

Quoted 8 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"

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

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.

Quoted 6 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 ;-)

Quoted 4 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?

Ciao,
Dscho

#8 lore raw
Quoted 22 lines · Johannes Schindelin

Hi,

Quoted 18 lines · Paul Gardiner
Quoted 17 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:

Quoted 6 lines
Quoted 5 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:

Quoted 4 lines

I create the initial repository with

     git-clone /<full-path>/<name>.git/ <folder>
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines

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.

Quoted 8 lines
Quoted 6 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.

Quoted 6 lines
Quoted 4 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.

#9 lore raw
Quoted 11 lines · Paul Gardiner
Quoted 7 lines
Quoted 6 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

Signature · 4 lines
Kevin Ballard
http://kevin.sb.org
[email protected]
http://www.tildesoft.com
#10 lore raw
Quoted 8 lines · Kevin Ballard
Quoted 6 lines · Paul Gardiner
Quoted 6 lines
Quoted 6 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
Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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.

#11 lore raw
In reply to Johannes Schindelin

Johannes Schindelin venit, vidit, dixit 16.05.2008 15:40:

Quoted 22 lines

Hi,

Quoted 18 lines · Paul Gardiner
Quoted 17 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:

Quoted 6 lines
Quoted 5 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:

Quoted 4 lines

I create the initial repository with

     git-clone /<full-path>/<name>.git/ <folder>
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines

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.

Quoted 8 lines
Quoted 6 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 ;-)

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

Quoted 6 lines
Quoted 4 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

#12 lore raw
Quoted 39 lines · Michael J Gruber

Johannes Schindelin venit, vidit, dixit 16.05.2008 15:40:

Quoted 22 lines

Hi,

Quoted 18 lines · Paul Gardiner
Quoted 17 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 14:32:

Quoted 6 lines
Quoted 5 lines · Michael J Gruber

Paul Gardiner venit, vidit, dixit 16.05.2008 13:25:

Quoted 4 lines

I create the initial repository with

     git-clone /<full-path>/<name>.git/ <folder>
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines

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.

Quoted 8 lines
Quoted 6 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 ;-)

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

Quoted 5 lines
Quoted 4 lines
$ cd epage
$ git-fetch
fatal: 'origin': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly
Quoted 5 lines
Quoted 1 line

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.

Quoted 1 line

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.