push: propagate remote and refspec with --recurse-submodules
[gitweb.git] / builtin / checkout.c
index e9c5fcfaf85533bee3086511c08de93ea63021ed..3ecc47bec07b47f3452b4744f0e7482681e61748 100644 (file)
@@ -471,7 +471,7 @@ static void setup_branch_path(struct branch_info *branch)
 {
        struct strbuf buf = STRBUF_INIT;
 
-       strbuf_branchname(&buf, branch->name);
+       strbuf_branchname(&buf, branch->name, INTERPRET_BRANCH_LOCAL);
        if (strcmp(buf.buf, branch->name))
                branch->name = xstrdup(buf.buf);
        strbuf_splice(&buf, 0, 0, "refs/heads/", 11);