Thread (17 messages) 17 messages, 3 authors, 2019-06-11

Re: [PATCH 03/10] t1450: make hash size independent

From: brian m. carlson <hidden>
Date: 2019-06-10 22:09:32

On 2019-06-10 at 07:57:18, Eric Sunshine wrote:
On Sun, Jun 9, 2019 at 6:44 PM brian m. carlson
[off-list ref] wrote:
quoted
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 <redacted>
---
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?
Probably because this was a squash of a couple different patches. I'll
reroll with that fixed.
-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help