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

Re: [Bug] git show crashes with deepened shallow clone

From
Stefan Näwe <stefan.naewe@atlas-elektronik.com>
Date
Sep 25, 2013, 15:10 UTC
Message-ID
<5242FCD0.8050900@atlas-elektronik.com>
In-Reply-To
<5242F78C.5060607@atlas-elektronik.com>
Am 25.09.2013 16:47, schrieb Stefan Näwe:
> Just a quick report since I don't have time to bisect now (will do later
> if no other gitster is faster...)
Seems to be somewhere between v1.8.3.1 (OK) and v1.8.3.2 (not OK) !!
Show 23 quoted lines
> 
> When I execute the below script 'git show' crashes. 'git log --oneline -2' gives
> for example:
> 
>   3808bade5b76c4663ac4a3f751dc9f1ed0b08f2e three
>   error: Could not read 1e8777edeb2b7e757f74c789e679fc6c71073897
>   fatal: Failed to traverse parents of commit 0aa4ef86004f5bb29f67e971d7963f5cf430c668
> 
> gdb backtrace of one run is attached.
> It happens on 32-bit Debian (5.0.10), 64-bit openSUSE (12.2), and Windows XP with git 1.8.4
> on all systems.
> 
> The help of 'git fetch' says:
> 
>   --depth=<depth>
> 
>       Deepen or shorten the history of a shallow repository created by git clone with
>       --depth=<depth> option (see git-clone(1)) to the specified number of commits from
>       the tip of each remote branch history. Tags for the deepened commits are not fetched.
> -------------------------------------------------------------------------------^^^^^^^^^
> 
> But that's not true. The tag 'two' (from the script below) gets fetched when
> deepening the repository.
v1.8.3.1 fetches the tag also.
Stefan
-- 
----------------------------------------------------------------
/dev/random says: Pobody's Nerfect!
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
Previous: Stefan NäweNext: Stefan Näwe
Message 2 of 5 in “[Bug] git show crashes with deepened shallow clone”
  1. Stefan NäweSep 25, 2013
  2. Stefan NäweSep 25, 2013
  3. Stefan NäweSep 25, 2013
  4. Stefan NäweSep 25, 2013
  5. Jonathan NiederSep 25, 2013

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.