From b71cbac4fac7e2b0e23a14b9daedc07d6b8b5ca8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 2 May 2025 12:35:39 +0200 Subject: [PATCH] tests: Fix test failure with git versions < 2.23. * gettext-tools/tests/xgettext-git-1: Use 'git checkout' instead of 'git restore'. --- gettext-tools/tests/xgettext-git-1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gettext-tools/tests/xgettext-git-1 b/gettext-tools/tests/xgettext-git-1 index 18aa3db56..c53149809 100755 --- a/gettext-tools/tests/xgettext-git-1 +++ b/gettext-tools/tests/xgettext-git-1 @@ -52,7 +52,7 @@ ${DIFF} xg-gi-test1-a.ok xg-gi-test1-a.pot || Exit 1 : ${TAR=tar} gzip -d -c < "$wabs_srcdir"/testdata/repo.tar.gz | ${TAR} xf - cd repo || Exit 1 -git restore . || Exit 1 +git checkout -- . || Exit 1 cd src || Exit 1 # ============================================================================== -- 2.47.3