]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin/worktree: switch null_sha1 to null_oid
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 18 Aug 2019 20:04:19 +0000 (20:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Aug 2019 22:04:59 +0000 (15:04 -0700)
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>
builtin/worktree.c

index a5bb02b2076a27a78947fda25c1e16dafd637622..0c0df3b0b8dfddc1416ee8ea404ccaefe04df351 100644 (file)
@@ -350,7 +350,7 @@ static int add_worktree(const char *path, const char *refname,
         */
        strbuf_reset(&sb);
        strbuf_addf(&sb, "%s/HEAD", sb_repo.buf);
-       write_file(sb.buf, "%s", sha1_to_hex(null_sha1));
+       write_file(sb.buf, "%s", oid_to_hex(&null_oid));
        strbuf_reset(&sb);
        strbuf_addf(&sb, "%s/commondir", sb_repo.buf);
        write_file(sb.buf, "../..");