Re: [PATCH v3 07/22] t1413: use tar to save and restore entire .git directory
Hi,
On 31/05/21 23.56, Han-Wen Nienhuys via GitGitGadget wrote:
Show 13 quoted lines
> 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