Skip Menu |

This queue is for tickets about the Git-Repository CPAN distribution.

Report information
The Basics
Id: 107219
Status: resolved
Priority: 0/
Queue: Git-Repository

People
Owner: Nobody in particular
Requestors: contyk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.315
Fixed in: 1.316



Subject: t/24-errors.t fails with git-2.5.2+
The error message `git log -1' returns with empty repositories has changed in git-2.5.2, causing the test to fail. The attached patch fixes the issue.
Subject: Git-Repository-1.315-git-2.5.2-compat.patch
From 05f7008aa3ae32c8556e7907c65d9d16bebaabd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk@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@redhat.com> --- 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
On Mon Sep 21 10:55:42 2015, contyk wrote: Show quoted text
> The error message `git log -1' returns with empty repositories has > changed in git-2.5.2, causing the test to fail. > > The attached patch fixes the issue.
I too had the same failure on darwin perl 5.16.3 with Git 2.5.3 and can confirm that the patch resolves the issue and the module installs successfully.
On Mon Sep 21 10:55:42 2015, contyk wrote: Show quoted text
> The error message `git log -1' returns with empty repositories has > changed in git-2.5.2, causing the test to fail. > > The attached patch fixes the issue.
Thanks, applied as c2f7321b0fc4fd7f304bf7d8b8fdf07fd29a3123. -- BooK