]> git.ipfire.org Git - thirdparty/git.git/commit
t5548: refactor test cases by resetting upstream
authorJiang Xin <zhiyou.jx@alibaba-inc.com>
Mon, 3 Feb 2025 06:29:33 +0000 (07:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Feb 2025 23:24:56 +0000 (15:24 -0800)
commitbc0f5939a58fda328bdba70eb64a19c969b9f8d8
tree5c4fe7b8b64ae0885e84e0df71be3e406815ea6c
parent12ad6b8feaf9dbbe8f040ce8620700cae793708b
t5548: refactor test cases by resetting upstream

Refactor the test cases with the following changes:

 - Calling setup_upstream() to reset upstream after running each test
   case.

 - Change the initial branch tips of the workspace to reduce the branch
   setup operations in the workspace.

 - Reduced the two steps of setting up and cleaning up the pre-receive
   hook by moving the operations into the corresponding test case,

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5548-push-porcelain.sh