]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/show-branch.c
refs: convert dwim_ref and expand_ref to struct object_id
[thirdparty/git.git] / builtin / show-branch.c
index 0237be4975eb1f1f50a1e39835eab086f9256097..722a7f4bec11f3f77299176a73186e30dcbc5da5 100644 (file)
@@ -720,7 +720,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
                        die(Q_("only %d entry can be shown at one time.",
                               "only %d entries can be shown at one time.",
                               MAX_REVS), MAX_REVS);
-               if (!dwim_ref(*av, strlen(*av), oid.hash, &ref))
+               if (!dwim_ref(*av, strlen(*av), &oid, &ref))
                        die(_("no such ref %s"), *av);
 
                /* Has the base been specified? */