/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert struct object to object_id
[git/git.git]
/
builtin
/
worktree.c
diff --git
a/builtin/worktree.c
b/builtin/worktree.c
index
d281f6d
..
475b958
100644
(file)
--- a/
builtin/worktree.c
+++ b/
builtin/worktree.c
@@
-277,7
+277,7
@@
static int add_worktree(const char *path, const char *refname,
if (commit)
argv_array_pushl(&cp.args, "update-ref", "HEAD",
-
sha1_to_hex(commit->object.sha1
), NULL);
+
oid_to_hex(&commit->object.oid
), NULL);
else
argv_array_pushl(&cp.args, "symbolic-ref", "HEAD",
symref.buf, NULL);