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