summaryrefslogtreecommitdiff
path: root/t/t9500-gitweb-standalone-no-errors.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-02-06 03:13:12 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-02-06 10:00:42 -0800
commitca51699961664890fdaabd276af539e6b3514053 (patch)
tree8ba79c2a018508e338d0fee3885fda0f562cda53 /t/t9500-gitweb-standalone-no-errors.sh
parentGit 1.7.6.6 (diff)
downloadtgif-ca51699961664890fdaabd276af539e6b3514053.tar.xz
tag: fix output of "tag -n" when errors occur
When "git tag" is instructed to print lines from annotated tags via "-n", it first prints the tag name, then attempts to parse and print the lines of the tag object, and then finally adds a trailing newline. If an error occurs, we return early from the function and never print the newline, screwing up the output for the next tag. Let's factor the line-printing into its own function so we can manage the early returns better, and make sure that we always terminate the line. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9500-gitweb-standalone-no-errors.sh')
0 files changed, 0 insertions, 0 deletions