mirror of
https://github.com/git/git
synced 2024-08-26 19:19:18 +00:00
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>
This commit is contained in:
parent
dd336a5511
commit
f6ca67d673
|
@ -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, "../..");
|
||||
|
|
Loading…
Reference in a new issue