Rename interpret/substitute nth_last_branch functions
[gitweb.git] / builtin-checkout.c
index 9fdfc58d1a198164727431352e083585d91f2d30..a8d9d97da202952eda503f28e006737ff34c7d5b 100644 (file)
@@ -355,7 +355,7 @@ static void setup_branch_path(struct branch_info *branch)
        struct strbuf buf = STRBUF_INIT;
        int ret;
 
-       if ((ret = interpret_nth_last_branch(branch->name, &buf))
+       if ((ret = interpret_branch_name(branch->name, &buf))
            && ret == strlen(branch->name)) {
                branch->name = xstrdup(buf.buf);
                strbuf_splice(&buf, 0, 0, "refs/heads/", 11);