From: Bagas Sanjaya Date: Tue, 01 Jun 2021 04:55:37 GMT Subject: Re: [PATCH v3 07/22] t1413: use tar to save and restore entire .git directory Message-ID: <51a802ff-0789-4051-6d45-5b9c6e55ba8a@gmail.com> In-Reply-To: Hi, On 31/05/21 23.56, Han-Wen Nienhuys via GitGitGadget wrote: > diff --git a/t/t1413-reflog-detach.sh b/t/t1413-reflog-detach.sh > index bde05208ae6a..934688a1ee82 100755 > --- a/t/t1413-reflog-detach.sh > +++ b/t/t1413-reflog-detach.sh > @@ -7,8 +7,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME > . ./test-lib.sh > > reset_state () { > - git checkout main && > - cp saved_reflog .git/logs/HEAD > + rm -rf .git && "$TAR" xf .git-saved.tar > } > Why do you do rm -rf git directory then extract tar archive to reset? -- An old man doll... just what I always wanted! - Clara