summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-02-23 06:01:31 -0500
committerJunio C Hamano <gitster@pobox.com>2023-02-23 13:01:15 -0800
commit87d38afa0d6900fa2c3ddeba51528af9d26cd161 (patch)
tree507293c348b9bb4752c8378a44b42f91d2019c56 /commit.h
parent795d713e2c3f5da18f35958a7f1c81cc5b36e312 (diff)
t5551: simplify expected cookie file
After making an HTTP request that should store cookies, we check that the expected values are in the cookie file. We don't want to look at the whole file, because it has noisy comments at the top that we shouldn't depend on. But we strip out the interesting bits using "tail -3", which is brittle. It requires us to put an extra blank line in our expected output, and it would fail to notice any reordering or extra content in the cookie file. Instead, let's just grep for non-blank lines that are not comments, which more directly describes what we're interested in. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions