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

Re: [RFC/PATCH] refs: tone down the dwimmery in refname_match() for {heads,tags,remotes}/*

From
Paolo Bonzini <pbonzini@redhat.com>
Date
May 27, 2019, 15:44 UTC
Message-ID
<a40c5388-4274-6bfa-4213-6013601c8fae@redhat.com>
In-Reply-To
<xmqqef4jewj6.fsf@gitster-ct.c.googlers.com>
On 27/05/19 17:39, Junio C Hamano wrote:
Show 5 quoted lines
> I do not think lightweight vs annotated should be the issue.  The
> tag that the requestor asks to be pulled (from repository ../b)
> should be what the requestor has locally when writing the request
> (in repository .).  Even if both tags at remote and local are
> annotated, we should still warn if they are different objects, no?

Right, lightweight vs annotated then is the obvious special case where one of the two is a commit and the other is a tag, hence they ought not to have the same SHA1. I'll take a look.

Paolo
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 6 of 8 in “Re: [GIT PULL] KVM changes for Linux 5.2-rc2”
  1. Linus TorvaldsMay 26, 2019
  2. refs: tone down the dwimmery in refname_match() for {heads,tags,remotes}/*Ævar Arnfjörð Bjarmason, May 26, 2019
  3. Paolo BonziniMay 27, 2019
  4. Ævar Arnfjörð BjarmasonMay 27, 2019
  5. Junio C HamanoMay 27, 2019
  6. Paolo BonziniMay 27, 2019
  7. push: make "HEAD:tags/my-tag" consistently push to a branchÆvar Arnfjörð Bjarmason, Jun 21, 2019
  8. Junio C HamanoJun 21, 2019

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.