summaryrefslogtreecommitdiff
path: root/t/t5513-fetch-track.sh
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2020-01-06 23:53:02 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-01-27 12:56:02 -0800
commit30c0367668ab919cc1bca3cff73820f77b573765 (patch)
tree9977dec4944c1818493a1cacb2ca28432d02675b /t/t5513-fetch-track.sh
parentt2018: be more discerning when checking for expected exit codes (diff)
downloadtgif-30c0367668ab919cc1bca3cff73820f77b573765.tar.xz
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 't/t5513-fetch-track.sh')
0 files changed, 0 insertions, 0 deletions