]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Fix test failure with git versions < 2.23.
authorBruno Haible <bruno@clisp.org>
Fri, 2 May 2025 10:35:39 +0000 (12:35 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 May 2025 13:28:23 +0000 (15:28 +0200)
* gettext-tools/tests/xgettext-git-1: Use 'git checkout' instead of
'git restore'.

gettext-tools/tests/xgettext-git-1

index 18aa3db56a190c493ab3e5e490faf9b39e702871..c53149809cf575f1167a46f2be0ff6647a10b798 100755 (executable)
@@ -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
 
 # ==============================================================================