X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=builtin%2Fcheckout.c;h=6350df83b51d6dba35bcae93d50bec9147e1c5e8;hb=f24c30e0b6b13078d8fc7cd71b9989d28fd76610;hp=af849c644fec1852845b1dfdb6ce8daa903e0fb5;hpb=ec06b05568bb9dbb7333a5974b4512db18395674;p=thirdparty%2Fgit.git diff --git a/builtin/checkout.c b/builtin/checkout.c index af849c644f..6350df83b5 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -650,7 +650,7 @@ static void setup_branch_path(struct branch_info *branch) * If this is a ref, resolve it; otherwise, look up the OID for our * expression. Failure here is okay. */ - if (!dwim_ref(branch->name, strlen(branch->name), &branch->oid, &branch->refname)) + if (!dwim_ref(branch->name, strlen(branch->name), &branch->oid, &branch->refname, 0)) repo_get_oid_committish(the_repository, branch->name, &branch->oid); strbuf_branchname(&buf, branch->name, INTERPRET_BRANCH_LOCAL); @@ -1349,7 +1349,7 @@ static void die_expecting_a_branch(const struct branch_info *branch_info) struct object_id oid; char *to_free; - if (dwim_ref(branch_info->name, strlen(branch_info->name), &oid, &to_free) == 1) { + if (dwim_ref(branch_info->name, strlen(branch_info->name), &oid, &to_free, 0) == 1) { const char *ref = to_free; if (skip_prefix(ref, "refs/tags/", &ref))