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

Re: [PATCH] clone: handle unborn branch in bare repos

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Sep 20, 2021, 19:50 UTC
Message-ID
<20210920195054.66688-1-jonathantanmy@google.com>
In-Reply-To
<YUjbKt0Hw0ieHcaN@coredump.intra.peff.net>
> So I don't think this is some clever or subtle behavior, but just a bug
> in 4f37d45706 (clone: respect remote unborn HEAD, 2021-02-05).
[snip]
> But the unborn case has
> an additional side effect of calling create_symref(), and we want that
> to happen whether we are bare or not.

Thanks for the analysis. Indeed, I missed the fact that we need the create_symref() side effect whether the repository is bare or not.

Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Previous: Jeff KingNext: Taylor Blau
Message 2 of 3 in “clone: handle unborn branch in bare repos”
  1. clone: handle unborn branch in bare reposJeff King, Sep 20, 2021
  2. Jonathan TanSep 20, 2021
  3. Taylor BlauSep 20, 2021

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.