]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/repobrowse_git_httpd.t: ensure signature exists for split
authorEric Wong <e@80x24.org>
Sat, 21 May 2016 07:13:18 +0000 (07:13 +0000)
committerEric Wong <e@80x24.org>
Sat, 21 May 2016 07:15:38 +0000 (07:15 +0000)
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

index 3e52b1b5ca43504a41fc30e2af7f623e304ff52c..005ab1730868ee917865dbd214ba3dd94d44b652 100644 (file)
@@ -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');
 });