summaryrefslogtreecommitdiff
path: root/git-gui/lib/error.tcl
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2025-10-13 10:48:55 +0200
committerJunio C Hamano <gitster@pobox.com>2025-10-13 08:51:41 -0700
commit132e5666ce785dc47e5d09a9271ee8d2828d6a66 (patch)
tree0cfe05e25c2db4351bb570bfed532619222b360f /git-gui/lib/error.tcl
parente204a167757d2c3e4914df60bad5cf78b0e6a9bb (diff)
t9350: properly count annotated tags
In "t9350-fast-export.sh", these existing tests: - 'fast-export | fast-import when main is tagged' - 'cope with tagger-less tags' are checking the number of annotated tags in the test repo by comparing it with some hardcoded values. This could be an issue if some new tests that have some prerequisites add new annotated tags to the repo before these existing tests. When the prerequisites would be satisfied, the number of annotated tags would be different from when some prerequisites would not be satisfied. As we are going to add new tests that add new annotated tags in a following commit, let's properly count the number of annotated tag in the repo by incrementing a counter each time a new annotated tag is added, and then by comparing the number of annotated tags to the value of the counter when checking the number of annotated tags. This is a bit ugly, but it makes it explicit that some tests are interdependent. Alternative solutions, like moving the new tests to the end of the script, were considered, but were rejected because they would instead hide the technical debt and could confuse developers in the future. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/error.tcl')
0 files changed, 0 insertions, 0 deletions