From 6cdb0221d18b2caed4d0caebf7c20d6eb159497d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 21 May 2016 07:13:18 +0000 Subject: t/repobrowse_git_httpd.t: ensure signature exists for split I've started using "format.signature=" for an empty signature on some of my machines to save a few lines. --- t/repobrowse_git_httpd.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/repobrowse_git_httpd.t b/t/repobrowse_git_httpd.t index 3e52b1b5..005ab173 100644 --- a/t/repobrowse_git_httpd.t +++ b/t/repobrowse_git_httpd.t @@ -88,9 +88,10 @@ test_psgi(uri => $uri, client => sub { # ignore signature from git-format-patch: my ($patch, undef) = split(/\n-- \n/s, $res->content); + + my $cmd = 'format-patch --signature=git -1 -M --stdout HEAD'; my ($exp, undef) = split(/\n-- \n/s, - `cd "$test->{git_dir}" && \ - git format-patch -1 -M --stdout HEAD`); + `git --git-dir=$test->{git_dir} $cmd`); is($patch, $exp, 'patch content matches expected'); }); -- cgit v1.2.3-24-ge0c7