Skip to content

Commit f6ca67d

Browse files
bk2204gitster
authored andcommitted
builtin/worktree: switch null_sha1 to null_oid
Switch the remaining use of null_sha1 to null_oid. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dd336a5 commit f6ca67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static int add_worktree(const char *path, const char *refname,
350350
*/
351351
strbuf_reset(&sb);
352352
strbuf_addf(&sb, "%s/HEAD", sb_repo.buf);
353-
write_file(sb.buf, "%s", sha1_to_hex(null_sha1));
353+
write_file(sb.buf, "%s", oid_to_hex(&null_oid));
354354
strbuf_reset(&sb);
355355
strbuf_addf(&sb, "%s/commondir", sb_repo.buf);
356356
write_file(sb.buf, "../..");

0 commit comments

Comments
 (0)