Package: libgit-repository-perl Version: 1.315-1 Severity: serious Tags: upstream patch User: debian-p...@lists.debian.org Usertags: autopkgtest Forwarded: https://rt.cpan.org/Ticket/Display.html?id=107219
This package fails to build on current sid/amd64: # Failed test 'log -1: died' # at t/24-errors.t line 204. # 'fatal: your current branch 'master' does not have any commits yet at t/24-errors.t line 203. # ' # doesn't match '(?^:^fatal: bad default revision 'HEAD' )' # Looks like you failed 1 test of 65. t/24-errors.t .............. 1..65 not ok 1 - log -1: died [...] Test Summary Report ------------------- t/24-errors.t (Wstat: 256 Tests: 65 Failed: 1) Failed test: 1 Non-zero exit status: 1 This apparently broke with the git upgrade from 2.5.1-1 to 2.5.3-1. Quoting https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.5.2.txt * "git init empty && git -C empty log" said "bad default revision 'HEAD'", which was found to be a bit confusing to new users. This is also [rt.cpan.org #107219], which has the attached patch by Petr Šabata. -- Niko Tyni nt...@debian.org
>From 05f7008aa3ae32c8556e7907c65d9d16bebaabd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@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 <con...@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