git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Corruption: empty refs/heads in otherwise filled repo: cannot clone?

From
JWJan Wielemaker <j.wielemaker@uva.nl>
Date
Jun 30, 2008, 10:30 UTC
Message-ID
<200806301230.38980.J.Wielemaker@uva.nl>
In-Reply-To
<m3r6afgrme.fsf@localhost.localdomain>
Hi Jakub,
Thanks for the quick reply.  Info:
On Monday 30 June 2008 12:10, Jakub Narebski wrote:
Show 5 quoted lines
> Jan Wielemaker <J.Wielemaker@uva.nl> writes:
> > I'm a bit puzzled. I have a bare repository, somehow without any files
> > in refs/heads.
>
> Do you have .git/packed-refs file? How do you have gc.packrefs set

Its a bare repo, so I'll forget the .git. Yes, I have that file and it contains nice references, I checked a few by hand, and they have the same SHA1 as the files I copied.

> ("git config --get gc.packrefs")? What are the git version on the

This gives no output, so I guess the answer is 'no'. Is that wrong? This is indeed the case (config):

----------------------------------------------------------------
[core]
        repositoryformatversion = 0
        filemode = true
        bare = true
        sharedrepository = 1
[gitcvs]
        enabled = 1
        logfile = /home/git/pl.git/cvs.log
        allbinary = 1
----------------------------------------------------------------
> clients that have trouble accessing repository, and what protocol
> (transport merhod) do they use: "file", http(s)/ftp, git, ssh?

I could reproduce the problem using the same git that maintains the bare repository, which started as git-1.5.3.4 and is now 1.5.6.rc3. It reproduces both using local file access and ssh. Other people have a variety of versions. I know of concrete problems using the stable 1.5.5 over ssh.

The problem that I can't even clone is indeed after running a git-gc.

So, now I have all branch head refs double (in packed-refs and in refs/heads). That explains ar least where they come from, but it fails to explain why doing exactly the same using the same git on the same repo as two users yields a different result. Of course, besides the desire to understand how his works, I'm mostly interested in how to fix this :-)

	Thanks --- Jan
Previous: Jakub NarebskiNext: Jakub Narebski
Message 3 of 10 in “Corruption: empty refs/heads in otherwise filled repo: cannot clone?”
  1. Jan WielemakerJun 30, 2008
  2. Jakub NarebskiJun 30, 2008
  3. Jan WielemakerJun 30, 2008
  4. Jakub NarebskiJun 30, 2008
  5. Jan WielemakerJun 30, 2008
  6. Jakub NarebskiJun 30, 2008
  7. Jan WielemakerJun 30, 2008
  8. Daniel BarkalowJun 30, 2008
  9. Jan WielemakerJun 30, 2008
  10. Björn SteinbrinkJun 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.