summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-03-06 16:20:40 -0800
committerJunio C Hamano <gitster@pobox.com>2012-03-06 16:20:40 -0800
commitcdf25ea54b1e882b130864d079c157b2f3e9e71c (patch)
tree116c54a33a6ee427ff8376e4ae06167f528f483c
parenta365816567dff45b637ad6560b0db31741a18e41 (diff)
downloadgit-jc/branch-branch.tar.gz
not like thisjc/branch-branch
-rw-r--r--builtin/branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/branch.c b/builtin/branch.c
index 1f65e0a417..f0f4b69c88 100644
--- a/builtin/branch.c
+++ b/builtin/branch.c
@@ -807,7 +807,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
} else if (argc > 0 && argc <= 2) {
if (kinds != REF_LOCAL_BRANCH)
die(_("-a and -r options to 'git branch' do not make sense with a branch name"));
- create_branch(argv[0], (argc == 2) ? argv[1] : head,
+ create_branch(argv[0], (argc == 2) ? argv[1] : "HEAD",
force_create, reflog, 0, track);
} else
usage_with_options(builtin_branch_usage, options);