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

Re: [PATCH] get_local_heads(): do not return random pointer if there is no head

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 18, 2009, 05:02 UTC
Message-ID
<7vljpyy2pj.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1239920183-29512-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
Show 5 quoted lines
> it's silly to do this:
>
> mkdir foo && cd foo && git init && git push somewhere.git
>
> but segfault should not happen even in that case.
Thanks.
Previous: Nguyễn Thái Ngọc Duy
Message 2 of 2 in “get_local_heads(): do not return random pointer if there is no head”
  1. get_local_heads(): do not return random pointer if there is no headNguyễn Thái Ngọc Duy, Apr 16, 2009
  2. Junio C HamanoApr 18, 2009

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.