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

Re: [PATCH] Introduce receive.denyDeletes

From
Jan Krüger <jk@jk.gs>
Date
Oct 30, 2008, 18:45 UTC
Message-ID
<20081030194503.2f9ece1a@perceptron>
In-Reply-To
<20081030183210.GO14786@spearce.org>

On Thu, 30 Oct 2008 11:32:10 -0700, "Shawn O. Pearce" <spearce@spearce.org> wrote:

Show 7 quoted lines
> >  test_expect_success \
> > [snip]
> > +	git send-pack ./victim/.git/ :extra master && return 1
> 
> Hmm, that should be:
> 
>   test_must_fail git send-pack ./victim/.git/ :extra master

Can I then delete the branch afterwards without lots of juggling (in case the test fails due to a random other reason that the branch accidentally getting deleted by receive-pack)? I'd expect I'd have to save the exit code to a temporary variable and that's just as ugly.

Disclaimer: I sort of just hacked the test case together by stringing
together pieces of existing test code, so I don't presume full
understanding of the test framework.
By the way, I love what your mail client did to my name.
-Jan
Previous: Shawn O. PearceNext: Junio C Hamano
Message 3 of 8 in “Introduce receive.denyDeletes”
  1. Introduce receive.denyDeletesJan Krüger, Oct 30, 2008
  2. Shawn O. PearceOct 30, 2008
  3. Jan KrügerOct 30, 2008
  4. Junio C HamanoOct 31, 2008
  5. Shawn O. PearceOct 31, 2008
  6. Introduce receive.denyDeletesJan Krüger, Nov 1, 2008
  7. Shawn O. PearceNov 1, 2008
  8. Johannes SchindelinOct 31, 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.