Hi Duy, On Fri, 8 Mar 2019, Nguyễn Thái Ngọc Duy wrote: > diff --git a/t/t2070-restore.sh b/t/t2070-restore.sh > new file mode 100755 > index 0000000000..df91bf54bc > --- /dev/null > +++ b/t/t2070-restore.sh > @@ -0,0 +1,77 @@ > +#!/bin/sh > + > +test_description='restore basic functionality' > + > +. ./test-lib.sh > + > +test_expect_success 'setup' ' > + test_commit first && > + echo first-and-a-half >>first.t && > + git add first.t && > + test_commit second && > + echo one >one && > + echo two >two && > + echo untracked >untracked && > + echo ignored >ignored && > + echo /ignored >.gitignore && > + git add one two .gitignore && > + git update-ref refs/heads/one master > +' > + > +test_expect_success 'restore without pathspec is not ok' ' > + test_must_fail git restore && > + test_must_fail git restore --source=first > +' > + > +test_expect_success 'restore -p without pathspec is fine' ' > + echo q >cmd && > + git restore -p +' This breaks with NO_PERL builds. See e.g. https://dev.azure.com/gitgitgadget/git/_build/results?buildId=4581 https://dev.azure.com/gitgitgadget/git/_build/results?buildId=4584 https://dev.azure.com/git/git/_build/results?buildId=386 You need this squashed in: diff --git a/t/t2070-restore.sh b/t/t2070-restore.sh index df91bf54bc06..f4766544c5de 100755 --- a/t/t2070-restore.sh +++ b/t/t2070-restore.sh @@ -23,7 +23,7 @@ test_expect_success 'restore without pathspec is not ok' ' test_must_fail git restore --source=first ' -test_expect_success 'restore -p without pathspec is fine' ' +test_expect_success PERL 'restore -p without pathspec is fine' ' echo q >cmd && git restore -p