builtin/worktree: switch null_sha1 to null_oid

Switch the remaining use of null_sha1 to null_oid. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Aug 18, 2019 at 20:04 UTC f6ca67d673c66e5c3988a18c2ec56b7fef9a23b6
1 file changed +1 -1
builtin/worktree.c
+1 -1
@@ -350,7 +350,7 @@ static int add_worktree(const char *path, const char *refname,
350 */
351 strbuf_reset(&sb);
352 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));
354 strbuf_reset(&sb);
355 strbuf_addf(&sb, "%s/commondir", sb_repo.buf);
356 write_file(sb.buf, "../..");