summaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.format-patch_--inline_--stdout_initial..master^
diff options
context:
space:
mode:
authorSiddharth Shrimali <r.siddharth.shrimali@gmail.com>2026-04-21 11:03:33 +0530
committerJunio C Hamano <gitster@pobox.com>2026-04-21 00:20:42 -0700
commite3253255d3e1c007e80742c304ddde9421dca9ca (patch)
treef4b7ffc8b50345ea40592a3b2c788051675d504a /t/t4013/diff.format-patch_--inline_--stdout_initial..master^
parent7002d6cd16047c0ed0b6befc22b5a7d54d4d6fde (diff)
downloadgit-e3253255d3e1c007e80742c304ddde9421dca9ca.tar.gz
git-e3253255d3e1c007e80742c304ddde9421dca9ca.zip
t7004: dynamically grab expected state in tests
The tests for 'Multiple -l or --list options' and 'trying to delete tags without params', hardcodes that exactly one or two specific tags ('myhead', 'mytag') exist in the repository. If other tests are added, modified, or removed earlier in the script, this expected global state will change, resulting in these tests to fail for completely unrelated reasons. Instead of hardcoding the expected tags, dynamically grab the state of the repository before running the commands under test ('git tag -l' and 'git tag -d'), and verify that the output matches or remains unchanged afterward. This keeps the tests independent from the script's overall state. Signed-off-by: Siddharth Shrimali <r.siddharth.shrimali@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..master^')
0 files changed, 0 insertions, 0 deletions