summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2019-08-18 20:04:19 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-08-19 15:04:59 -0700
commitf6ca67d673c66e5c3988a18c2ec56b7fef9a23b6 (patch)
tree708381b6528d702cc79e8c58a2a9f3a0b6bcfd60 /builtin
parentbuiltin/repack: write object IDs of the proper length (diff)
downloadtgif-f6ca67d673c66e5c3988a18c2ec56b7fef9a23b6.tar.xz
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/worktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c
index a5bb02b207..0c0df3b0b8 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -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, "../..");