threads / discuss / 3327

older git archive access broken in 1.2.0?

Subject: older git archive access broken in 1.2.0?

## tl;dr

4 messages between Feb 14, 2006 and Feb 14, 2006.

replies: 3people: 3as markdown or json

Greg KH· Feb 14, 2006, 05:06 UTC · lore
I was trying to find where something changed in the historical Linux
kernel git tree:
	rsync://rsync.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/

when I noticed that the latest version of git doesn't seem to like this archive. I can't clone it, but 'git log' and 'git whatchanged' seems to work fine.

Also, gitk dies with the following error:
$ gitk
Error in startup script: fatal: '.git': unable to chdir or not a git archive
fatal: unexpected EOF
Failed to find remote refs
    while executing
"close $refd"
    (procedure "readrefs" line 41)
    invoked from within
"readrefs"
    (file "/home/greg/bin/gitk" line 3744)

Is this because I just synced the whole tree over using rsync and didn't use git to clone it a long time ago? Or that it was created with an older version of git?

I'm not able to clone it locally either:
	$ git clone history.git/ test
	fatal: '/home/greg/linux/git/history.git/.git': unable to chdir or not a git archive
	fatal: unexpected EOF
	clone-pack from '/home/greg/linux/git/history.git/.git' failed.

I don't know when this broke with git, as it's been a long time since I looked at this tree...

thanks,
greg k-h
Junio C Hamano· Feb 14, 2006, 05:48 UTC · re: Greg KH · lore

Re: older git archive access broken in 1.2.0?

Greg KH <greg@kroah.com> writes:
Show 7 quoted lines
> I was trying to find where something changed in the historical Linux
> kernel git tree:
> 	rsync://rsync.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/
>
> when I noticed that the latest version of git doesn't seem to like this
> archive.  I can't clone it, but 'git log' and 'git whatchanged' seems to
> work fine.

I think 1.2.0 may be a coincidence. history.git/ mistakenly has an extra .git subdirectory underneath it. Removing it should make things to work again I suspect.

Greg KH· Feb 14, 2006, 06:15 UTC · re: Junio C Hamano · lore

Re: older git archive access broken in 1.2.0?

On Mon, Feb 13, 2006 at 09:48:17PM -0800, Junio C Hamano wrote:
Show 13 quoted lines
> Greg KH <greg@kroah.com> writes:
> 
> > I was trying to find where something changed in the historical Linux
> > kernel git tree:
> > 	rsync://rsync.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/
> >
> > when I noticed that the latest version of git doesn't seem to like this
> > archive.  I can't clone it, but 'git log' and 'git whatchanged' seems to
> > work fine.
> 
> I think 1.2.0 may be a coincidence.  history.git/ mistakenly has
> an extra .git subdirectory underneath it.  Removing it should
> make things to work again I suspect.
Ah, doh, that was simple.  Thanks for the quick response.
greg k-h
Thomas Gleixner· Feb 14, 2006, 07:00 UTC · re: Greg KH · lore

Re: older git archive access broken in 1.2.0?

On Mon, 2006-02-13 at 22:15 -0800, Greg KH wrote:
Show 5 quoted lines
> > I think 1.2.0 may be a coincidence.  history.git/ mistakenly has
> > an extra .git subdirectory underneath it.  Removing it should
> > make things to work again I suspect.
> 
> Ah, doh, that was simple.  Thanks for the quick response.
Fixed. No idea how it got there. 
	tglx

← back to recent threads