Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/dir-exclude-cleanup' into maint
[gitweb.git]
/
builtin
/
worktree.c
diff --git
a/builtin/worktree.c
b/builtin/worktree.c
index d281f6d887691fb43ebb052091f84e78aabe6d01..475b9581a5583166c43199f1662b510842c59c7d 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);