Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
branch: restrict @-expansions when deleting
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 512492aad9099dd2a7aa85391b5c9a8e321c3bfe..711a92353061f6d30192668a7f60c975062fecba 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-452,7
+452,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
, 0
);
if (strcmp(buf.buf, branch->name))
branch->name = xstrdup(buf.buf);
strbuf_splice(&buf, 0, 0, "refs/heads/", 11);