Skip to content

Commit 69fa337

Browse files
bk2204gitster
authored andcommitted
builtin/index-pack: replace sha1_to_hex
Since sha1_to_hex is limited to SHA-1, replace it with hash_to_hex so this code works with other algorithms. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3a4d7aa commit 69fa337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/index-pack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,11 +1490,11 @@ static void final(const char *final_pack_name, const char *curr_pack_name,
14901490
}
14911491

14921492
if (!from_stdin) {
1493-
printf("%s\n", sha1_to_hex(hash));
1493+
printf("%s\n", hash_to_hex(hash));
14941494
} else {
14951495
struct strbuf buf = STRBUF_INIT;
14961496

1497-
strbuf_addf(&buf, "%s\t%s\n", report, sha1_to_hex(hash));
1497+
strbuf_addf(&buf, "%s\t%s\n", report, hash_to_hex(hash));
14981498
write_or_die(1, buf.buf, buf.len);
14991499
strbuf_release(&buf);
15001500

0 commit comments

Comments
 (0)