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

Re: [PATCH] Added test case for mirror to not push stash refs

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 6, 2008, 16:58 UTC
Message-ID
<7vod0siyfx.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<bd6139dc0811060034q14e47232n5f00471e5420efbb@mail.gmail.com>
"Sverre Rabbelier" <alturin@gmail.com> writes:
Show 6 quoted lines
>> +               git push --mirror up
>> +       )
>> +'
>
> I don't quite get how this works, I don't see a test here anywhere to
> actually test that the stash refs were not pushed?
I agree that this test should check the receiving end.

The patch is relying on the fact that the receiving end would reject the push if the sending end tries to push refs/$foo where $foo does not have any slash.

Previous: Sverre RabbelierNext: david@statichacks.org
Message 7 of 8 in “error pushing stash ?”
  1. David BrysonOct 7, 2008
  2. Shawn O. PearceOct 7, 2008
  3. Jeff KingOct 28, 2008
  4. Jeff KingOct 28, 2008
  5. Added test case for mirror to not push stash refsdavid@statichacks.org, Nov 6, 2008
  6. Sverre RabbelierNov 6, 2008
  7. Junio C HamanoNov 6, 2008
  8. Added test case for mirror to not push stash refsdavid@statichacks.org, Nov 6, 2008

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.