summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorSantiago Torres <santiago@nyu.edu>2017-03-23 22:28:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-24 17:19:18 (GMT)
commitb42ca35e5c4f792810c08e95676ba63976f4cd02 (patch)
treea7a98ae0dddf8526c56ad27fea47e8fba5443942 /dir.h
parent4fea72f4f76addb6b49ca4f5b97f66a6bda46985 (diff)
downloadgit-b42ca35e5c4f792810c08e95676ba63976f4cd02.zip
git-b42ca35e5c4f792810c08e95676ba63976f4cd02.tar.gz
git-b42ca35e5c4f792810c08e95676ba63976f4cd02.tar.bz2
t7004, t7030: fix here-doc syntax errors
Jan Palus noticed that some here-doc are spelled incorrectly, resulting the entire remainder of the test snippet being slurped into the "expect" file as if it were data, e.g. in this sequence cat >expect <<EOF && ... expectation ... EOF git $cmd_being_tested >actual && test_cmp expect actual the last command of the test is "cat" that sends everything to 'expect' and succeeds. Fixing these issues in t7004 and t7030 reveals that "git tag -v" and "git verify-tag" with their --format option do not work as the test was expecting originally. Instead of showing both valid tags and tags with incorrect signatures on their output, tags that do not pass verification are omitted from the output. Another breakage that is uncovered is that these tests must be restricted to environment where gpg is available. Arguably, that is a safer behaviour, and because the format specifiers like %(tag) do not have a way to show if the signature verifies correctly, the command with the --format option cannot be used to get a list of tags annotated with their signature validity anyway. For now, let's fix the here-doc syntax, update the expectation to match the reality, and update the test prerequisite. Maybe later when we extend the --format language available to "git tag -v" and "git verify-tag" to include things like "%(gpg:status)", we may want to change the behaviour so that piping a list of tag names into xargs git verify-tag --format='%(gpg:status) %(tag)' becomes a good way to produce such a list, but that is a separate topic. Noticed-by: Jan Palus <jan.palus@gmail.com> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Santiago Torres <santiago@nyu.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
0 files changed, 0 insertions, 0 deletions