diff options
author | Eric Wong <e@80x24.org> | 2016-05-21 07:13:18 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-21 07:15:38 +0000 |
commit | 6cdb0221d18b2caed4d0caebf7c20d6eb159497d (patch) | |
tree | 1232c0a2259733832aba605e1a06895b6da36bf9 /t | |
parent | 2d4c8a36a10acfb14da50dae7f61f06c593803cb (diff) | |
download | public-inbox-6cdb0221d18b2caed4d0caebf7c20d6eb159497d.tar.gz |
I've started using "format.signature=" for an empty signature on some of my machines to save a few lines.
Diffstat (limited to 't')
-rw-r--r-- | t/repobrowse_git_httpd.t | 5 |
1 files changed, 3 insertions, 2 deletions
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'); }); |