On Thu, 30 Oct 2008 11:32:10 -0700, "Shawn O. Pearce" <spearce@xxxxxxxxxxx> wrote: > > 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html