summaryrefslogtreecommitdiff
path: root/Documentation/git-reset.txt
diff options
context:
space:
mode:
authorVincent van Ravesteijn <vfr@lyx.org>2011-11-23 06:31:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-23 21:23:33 (GMT)
commit5cd75c7d8da8971d0d78f82d78c017e686fb5bb0 (patch)
treebf3335e4fa4b6949ee87754d9b9f2debd1a94a9d /Documentation/git-reset.txt
parentb15aa973b296ca36ae39592491bcb02944ac0f7a (diff)
downloadgit-5cd75c7d8da8971d0d78f82d78c017e686fb5bb0.zip
git-5cd75c7d8da8971d0d78f82d78c017e686fb5bb0.tar.gz
git-5cd75c7d8da8971d0d78f82d78c017e686fb5bb0.tar.bz2
builtin-branch: Fix crash on invalid use of --force
The option --force should not put us in 'create branch' mode. The fact that this option is only valid in 'create branch' mode is already caught by the the next 'if' in which we assure that we are in the correct mode. Without this patch, "git branch -f" without any other argument ends up calling create_branch without any branch name. Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-reset.txt')
0 files changed, 0 insertions, 0 deletions