[libgit-repository-perl] 01/02: Fix test suite failure with newer git versions. Patch by Petr Šabata.
Niko Tyni
ntyni at moszumanska.debian.org
Sun Oct 11 11:21:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
ntyni pushed a commit to branch master
in repository libgit-repository-perl.
commit ad4d3e812a377755e4afb200cd18edb248c4f03a
Author: Niko Tyni <ntyni at debian.org>
Date: Sun Oct 11 14:17:16 2015 +0300
Fix test suite failure with newer git versions. Patch by Petr Šabata.
Closes: #801499
---
.../Git-Repository-1.315-git-2.5.2-compat.patch | 36 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 37 insertions(+)
diff --git a/debian/patches/Git-Repository-1.315-git-2.5.2-compat.patch b/debian/patches/Git-Repository-1.315-git-2.5.2-compat.patch
new file mode 100644
index 0000000..f186ec1
--- /dev/null
+++ b/debian/patches/Git-Repository-1.315-git-2.5.2-compat.patch
@@ -0,0 +1,36 @@
+From 05f7008aa3ae32c8556e7907c65d9d16bebaabd9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
+Date: Mon, 21 Sep 2015 16:47:51 +0200
+Subject: [PATCH] git-2.5.2 test suite compatibility fix
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The latest version of git altered the error message `git log -1' prints
+on empty repositories. This patch extends the test to deal with this
+situation.
+
+Signed-off-by: Petr Šabata <contyk at redhat.com>
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=107219
+Bug-Debian: https://bugs.debian.org/801499
+---
+ t/24-errors.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/24-errors.t b/t/24-errors.t
+index 7d7f2ee..aeb2c58 100644
+--- a/t/24-errors.t
++++ b/t/24-errors.t
+@@ -56,7 +56,7 @@ my @tests = (
+ { test_repo => [],
+ cmd => [qw( log -1 )],
+ exit => 128,
+- dollar_at => qr/^fatal: bad default revision 'HEAD' /,
++ dollar_at => qr/^fatal: (?:bad default revision 'HEAD' |your current branch 'master' does not have any commits yet)/,
+ },
+
+ # create the empty tree
+--
+2.4.3
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d74da3d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Git-Repository-1.315-git-2.5.2-compat.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libgit-repository-perl.git
More information about the Pkg-perl-cvs-commits
mailing list