summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-01-06 23:53:02 -0500
committerJunio C Hamano <gitster@pobox.com>2020-01-27 12:56:02 -0800
commit30c0367668ab919cc1bca3cff73820f77b573765 (patch)
tree9977dec4944c1818493a1cacb2ca28432d02675b /commit.c
parent40caa5366a84fba6e64ea32bf98d9c1aba0c537b (diff)
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 'commit.c')
0 files changed, 0 insertions, 0 deletions