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

Re: Diagnosing stray/stale .keep files -- explore what is in a pack?

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Jan 14, 2014, 17:10 UTC
Message-ID
<CACPiFCJVx0dkkPQ=LosbAAKq7CvK6_yQL5QDHMYr5oJAS6wb6Q@mail.gmail.com>
In-Reply-To
<CACPiFCLa3X-Xt5GwrHHA-PFj-Bi9_sW+=y2xidZ7tDbFfM26rA@mail.gmail.com>

On Tue, Jan 14, 2014 at 9:54 AM, Martin Langhoff <martin.langhoff@gmail.com> wrote:

> Is there a handy way to list the blobs in a pack, so I can feed them
> to git-cat-file and see what's in there? I'm sure that'll help me
> narrow down on the issue.
git show-index  <
/var/lib/ppg/reports.git/objects/pack/pack-22748bcca7f50a3a49aa4aed61444bf9c4ced685.idx
|
cut -d\  -f2 | xargs -iHASH git --git-dir  /var/lib/ppg/reports.git/
unpack-file HASH

After a bit of looking at the output, clearly I have two clients, out of the many that connect here, that have the problem. I will be looking into those clients to see what's the problem.

In my use case, clients push to their own head. Looking at refs/heads shows that there are stale .lock files there. Hmmm.

This is on git 1.7.1 (RHEL and CentOS clients).
cheers,
m
-- 
 martin.langhoff@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
Previous: Martin LanghoffNext: Martin Fick
Message 2 of 10 in “Diagnosing stray/stale .keep files -- explore what is in a pack?”
  1. Martin LanghoffJan 14, 2014
  2. Martin LanghoffJan 14, 2014
  3. Martin FickJan 14, 2014
  4. Martin LanghoffJan 14, 2014
  5. Jeff KingJan 15, 2014
  6. Martin LanghoffJan 15, 2014
  7. Junio C HamanoJan 15, 2014
  8. Martin LanghoffJan 15, 2014
  9. Duy NguyenJan 16, 2014
  10. Jeff KingJan 21, 2014

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.