Re: [PATCH 03/10] t1450: make hash size independent
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jun 10, 2019, 07:57 UTC
- Message-ID
- <CAPig+cT_457aAXEXYm1ZrFVuLmFeKVaJ7ahf9AmbrWwuoSRKfQ@mail.gmail.com>
- In-Reply-To
- <20190609224400.41557-4-sandals@crustytoothpaste.net>
On Sun, Jun 9, 2019 at 6:44 PM brian m. carlson <sandals@crustytoothpaste.net> wrote:
Show 22 quoted lines
> Replace several hard-coded full and partial object IDs with variables or > computed values. Create junk data to stuff inside an invalid tree that > can be either 20 or 32 bytes long. Compute a binary all-zeros object ID > instead of hard-coding a 20-byte length. > [...] > Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> > --- > diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh > @@ -9,6 +9,7 @@ test_description='git fsck random collection of tests > test_expect_success setup ' > + test_oid_init && > git config gc.auto 0 && > git config i18n.commitencoding ISO-8859-1 && > test_commit A fileA one && > @@ -16,7 +17,8 @@ test_expect_success setup ' > git checkout HEAD^0 && > test_commit B fileB two && > git tag -d A B && > - git reflog expire --expire=now --all > + git reflog expire --expire=now --all && > + test_oid_init > '
Why does this function call test_oid_init() twice?