Skip to content

Commit 54cbbe4

Browse files
bk2204gitster
authored andcommitted
t/helper: initialize the repository for test-sha1-array
test-sha1-array uses the_hash_algo under the hood. Since t0064 wants to use the value that is correct for the hash algorithm that we're testing, make sure the test helper initializes the repository to set the_hash_algo correctly. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 97997e6 commit 54cbbe4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/helper/test-oid-array.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ int cmd__oid_array(int argc, const char **argv)
1212
{
1313
struct oid_array array = OID_ARRAY_INIT;
1414
struct strbuf line = STRBUF_INIT;
15+
int nongit_ok;
16+
17+
setup_git_directory_gently(&nongit_ok);
1518

1619
while (strbuf_getline(&line, stdin) != EOF) {
1720
const char *arg;

0 commit comments

Comments
 (0)