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

Re: failed to lock

From
Jay Soffian <jaysoffian@gmail.com>
Date
Apr 15, 2010, 19:13 UTC
Message-ID
<k2j76718491004151213xdb223ff8kd43f170eaf3a470a@mail.gmail.com>
In-Reply-To
<7vd3y0k0c6.fsf@alter.siamese.dyndns.org>
On Thu, Apr 15, 2010 at 3:00 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 14 quoted lines
> I would rather think that "git push" should notice that */HEAD is a symref
> and refrain from pushing it.  Stated more precisely,
>
>  - It is perfectly fine to do this:
>
>   $ git push there HEAD:somebranch
>
>  - But it does not make sense to push a symref via
>
>   [remote "there"]
>        push = refs/*:refs/*
>
>   to a bare repository that is used as a back-up mirror by including
>   refs/HEAD:refs/HEAD in the result of wildcard expansion.

But nothing prevents the destination repo from having arbitrary symrefs. And there is no way for the source to know which destination refs may be symrefs and which are not.

So it seems safer to me that the destination should ignore duplicates in the received list.

No?
j.
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “failed to lock”
  1. Jay SoffianApr 14, 2010
  2. Jay SoffianApr 14, 2010
  3. Jay SoffianApr 15, 2010
  4. Junio C HamanoApr 15, 2010
  5. Jay SoffianApr 15, 2010
  6. Junio C HamanoApr 15, 2010

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.