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