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

Re: git-send-pack: broken handling of ref specs with wildcards

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 8, 2007, 06:33 UTC
Message-ID
<7v8xavlzu0.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0706072356220.4046@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 12 quoted lines
> On Fri, 8 Jun 2007, Alex Riesen wrote:
>
>> Try something like this:
>> 
>>     git-send-pack --remote=origin --thin /some/other/repo \
>>     'refs/heads/*:refs/remotes/child/*'
>> 
>> The result looks broken: the sent reference are created not in
>> refs/remotes/child/ but just in refs/heads/ of /some/other/repo.
>
> I had the impression that it was git-push, a porcelain, which handles 
> refspec wildcards, not send-pack, which is plumbing.

Well, I do not think it is wrong per-se if plumbing send-pack starts understanding 'a/*:b/*'. Earlier it only understood concrete refspecs, and such a refspec that has asterisks cannot be concrete, as '*' is an invalid char in a refname. So there is no risk of confusion.

That is, as long as it is done right, which was not true in this case.

Previous: Johannes SchindelinNext: Daniel Barkalow
Message 3 of 8 in “git-send-pack: broken handling of ref specs with wildcards”
  1. Alex RiesenJun 7, 2007
  2. Johannes SchindelinJun 7, 2007
  3. Junio C HamanoJun 8, 2007
  4. Daniel BarkalowJun 8, 2007
  5. Fix push with refspecs containing wildcardsAlex Riesen, Jun 7, 2007
  6. Junio C HamanoJun 8, 2007
  7. Junio C HamanoJun 8, 2007
  8. Alex RiesenJun 8, 2007

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.