From: Junio C Hamano Date: Mon, 15 Oct 2012 23:28:23 GMT Subject: Re: [PATCH] completion: add format-patch options to send-email Message-ID: <7vhapvuxgo.fsf@alter.siamese.dyndns.org> In-Reply-To: <20121015224857.GA2156@goldbirke> SZEDER Gábor writes: >> + cd test > > This 'cd' makes all subsequent tests to be executed in a different > repository than previously, which breaks 'checkout completes ref > names'. Yeah, thanks for spotting and yelling at it ;-). We really need to be careful about tests that cd around. Even the ones that only go down and expect the rest of the test to run in that subdirectory may later have to be modified by somebody to run back at the original level, and writing "cd ..", which leads to all sorts of problems, becomes too tempting. >> +' >> + >> test_expect_success 'basic' ' >> run_completion "git \"\"" && >> # built-in >> @@ -228,4 +244,9 @@ test_expect_success 'general options plus command' ' >> test_completion "git --no-replace-objects check" "checkout " >> ' >> >> +test_expect_success 'send-email' ' >> + test_completion "git send-email --cov" "--cover-letter " && >> + test_completion "git send-email ma" "master " >> +' >> + >> test_done >> -- >> 1.7.12.1 >>