From: Bruno Haible Date: Fri, 2 May 2025 10:35:39 +0000 (+0200) Subject: tests: Fix test failure with git versions < 2.23. X-Git-Tag: v0.25~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b71cbac4fac7e2b0e23a14b9daedc07d6b8b5ca8;p=thirdparty%2Fgettext.git tests: Fix test failure with git versions < 2.23. * gettext-tools/tests/xgettext-git-1: Use 'git checkout' instead of 'git restore'. --- 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 # ==============================================================================