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

[PATCH 0/2] request-pull: warn if the remote object is not the same as the local one

From
Paolo Bonzini <bonzini@gnu.org>
Date
May 28, 2019, 10:15 UTC
Message-ID
<20190528101543.16094-1-bonzini@gnu.org>
From: Paolo Bonzini <pbonzini@redhat.com>

In some cases, git request-pull might be invoked with remote and local objects that differ even though they point to the same commit. For example, the remote object might be a lightweight tag vs. an annotated tag on the local side, or the user might have reworded the tag locally and forgotten to push it.

When this happens git-request-pull will not warn, because it only
checks that "git ls-remote" returns an SHA1 that matches the local
commit.  Patch 2 of this series makes git-request-pull remember the tag
object's SHA1 while processing the "git ls-remote" output, so that it
can be matched against the local object.
    
Paolo Bonzini (2):
  request-pull: quote metacharacters in local ref
  request-pull: warn if the remote object is not the same as the local one
 git-request-pull.sh     | 46 ++++++++++++++++++++++-------------
 t/t5150-request-pull.sh | 53 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+), 17 deletions(-)
-- 
2.21.0
Next: Paolo Bonzini
Message 1 of 3 in “request-pull: warn if the remote object is not the same as the local one”
  1. 0/2 request-pull: warn if the remote object is not the same as the local onePaolo Bonzini, May 28, 2019
  2. 1/2 request-pull: quote regex metacharacters in local refPaolo Bonzini, May 28, 2019
  3. 2/2 request-pull: warn if the remote object is not the same as the local onePaolo Bonzini, May 28, 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.