diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-03-06 16:20:40 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-06 16:20:40 -0800 |
commit | cdf25ea54b1e882b130864d079c157b2f3e9e71c (patch) | |
tree | 116c54a33a6ee427ff8376e4ae06167f528f483c | |
parent | a365816567dff45b637ad6560b0db31741a18e41 (diff) | |
download | git-jc/branch-branch.tar.gz |
not like thisjc/branch-branch
-rw-r--r-- | builtin/branch.c | 2 |
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); |