From: Eric Wong Date: Sat, 21 May 2016 07:13:18 +0000 (+0000) Subject: t/repobrowse_git_httpd.t: ensure signature exists for split X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6cdb0221d18b2caed4d0caebf7c20d6eb159497d;p=thirdparty%2Fpublic-inbox.git 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. --- diff --git a/t/repobrowse_git_httpd.t b/t/repobrowse_git_httpd.t index 3e52b1b5c..005ab1730 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'); });