This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libgit-wrapper-perl.

commit c1e7cef5f5d0e1b5ea8fe42d868ee9335b62ec56
Author: gregor herrmann <gre...@debian.org>
Date:   Fri Aug 19 17:01:47 2016 +0200

    Add patch from upstream bug for compatibility with Git >= 2.9.0.
    
    Closes: #834793
---
 .../0001-Fix-test-9-in-basic.t-with-Git-2.9.patch  | 40 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 41 insertions(+)

diff --git a/debian/patches/0001-Fix-test-9-in-basic.t-with-Git-2.9.patch 
b/debian/patches/0001-Fix-test-9-in-basic.t-with-Git-2.9.patch
new file mode 100644
index 0000000..2bd4142
--- /dev/null
+++ b/debian/patches/0001-Fix-test-9-in-basic.t-with-Git-2.9.patch
@@ -0,0 +1,40 @@
+From e603dcbc1a545f6d6fb74d8d3cb5a66ca23b05ae Mon Sep 17 00:00:00 2001
+From: brian greenfield <bri...@cpan.org>
+Date: Tue, 19 Jul 2016 15:57:51 +0100
+Subject: [PATCH] Fix test 9 in basic.t with Git >= 2.9
+
+[Git 2.9 Release 
Notes](https://github.com/git/git/blob/master/Documentation/RelNotes/2.9.0.txt)
+
+> The output formats of "git log" that indents the commit log message by
+> 4 spaces now expands HT in the log message by default. You can use
+> the "--no-expand-tabs" option to disable this.
+
+I've chosen the simple fix of matching the git message against
+8 spaces or a TAB.
+
+
+Bug: https://github.com/genehack/Git-Wrapper/issues/73
+Origin: https://github.com/genehack/Git-Wrapper/pull/72
+Bug-Debian: https://bugs.debian.org/834793
+
+
+---
+ t/basic.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/basic.t b/t/basic.t
+index 7273859..c705d08 100644
+--- a/t/basic.t
++++ b/t/basic.t
+@@ -74,7 +74,7 @@ is(@log, 1, 'one log entry');
+ 
+ my $log = $log[0];
+ is($log->id, (split /\s/, $rev_list[0])[0], 'id');
+-is($log->message, "FIRST\n\n\tBODY\n", "message");
++like($log->message, qr/FIRST\n\n(?:        |\t)BODY\n/, "message");
+ 
+ throws_ok { $git->log( "--format=%H" ) } q{Git::Wrapper::Exception};
+ 
+-- 
+2.9.3
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a0cadc4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-test-9-in-basic.t-with-Git-2.9.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libgit-wrapper-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to