diff options
| author | Denton Liu <liu.denton@gmail.com> | 2020-01-06 23:53:02 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-01-27 12:56:02 -0800 |
| commit | 30c0367668ab919cc1bca3cff73820f77b573765 (patch) | |
| tree | 9977dec4944c1818493a1cacb2ca28432d02675b /builtin/commit.c | |
| parent | t2018: be more discerning when checking for expected exit codes (diff) | |
| download | git-30c0367668ab919cc1bca3cff73820f77b573765.tar.gz git-30c0367668ab919cc1bca3cff73820f77b573765.zip | |
t2018: teach do_checkout() to accept `!` arg
We are running `test_must_fail do_checkout`. However,
`test_must_fail` should only be used on git commands. Teach
do_checkout() to accept `!` as a potential first argument which will
cause the function to expect the "git checkout" to fail.
This increases the granularity of the test as, instead of blindly
checking that do_checkout() failed, we check that only the specific
expected invocation of git fails.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
