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

Re: git-reflog infinite loop

From
Pascal Obry <pascal@obry.net>
Date
Jun 11, 2008, 18:58 UTC
Message-ID
<4850204F.50401@obry.net>
In-Reply-To
<20080611034718.GB7198@sigill.intra.peff.net>
Jeff King a écrit :
> I can't reproduce here, so presumably it is some condition in your
> repository; can you make a tarball of your .git directory available?
Ok, mystery solved.

The problem was that the repository had been imported using git-svn and contained something like 86000 reflog entries in .git/logs/refs/remotes/pre/trunk.

Using the debugger I have seen that the loop was not endless... but very slow as there was many many reflog to process. Don't know if this is expected or not though.

To fix that I have launched:
    $ git-reflog expire --expire=10 --all

It has removed all the old reflogs dating from the git-svn initial import lowering the number of enties in .git/logs/refs/remotes/pre/trunk to 0 :)

git gc is now working like a charm!
Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Previous: Jeff King
Message 5 of 5 in “git-reflog infinite loop”
  1. Pascal ObryJun 10, 2008
  2. Jeff KingJun 11, 2008
  3. Pascal ObryJun 11, 2008
  4. Jeff KingJun 11, 2008
  5. Pascal ObryJun 11, 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.