From: Junio C Hamano Date: Tue, 28 Jan 2020 19:09:52 GMT Subject: Re: [PATCH v2 18/22] t5703: make test work with SHA-256 Message-ID: In-Reply-To: <20200125230035.136348-21-sandals@crustytoothpaste.net> "brian m. carlson" writes: > This test used an object ID which was 40 hex characters in length, > causing the test not only not to pass, but to hang, when run with > SHA-256 as the hash. Change this value to a fixed dummy object ID using > test_oid_init and test_oid. Has the above part been split into another patch? > Furthermore, ensure we extract an object ID of the appropriate length > using cut with fields instead of a fixed length. This one makes sense. > Signed-off-by: brian m. carlson > --- > t/t5703-upload-pack-ref-in-want.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/t/t5703-upload-pack-ref-in-want.sh b/t/t5703-upload-pack-ref-in-want.sh > index 1424fabd4a..5511cdcec2 100755 > --- a/t/t5703-upload-pack-ref-in-want.sh > +++ b/t/t5703-upload-pack-ref-in-want.sh > @@ -19,7 +19,7 @@ get_actual_commits () { > }' o.pack && > git index-pack o.pack && > git verify-pack -v o.idx >objs && > - grep commit objs | cut -c-40 | sort >actual_commits > + grep commit objs | cut -d" " -f1 | sort >actual_commits > } > > check_output () {