From: Vincent van Ravesteijn Date: Wed, 23 Nov 2011 06:31:55 +0000 (+0100) Subject: builtin-branch: Fix crash on invalid use of --force X-Git-Tag: v1.7.8-rc4~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5cd75c7d8da8971d0d78f82d78c017e686fb5bb0?ds=inline;hp=5cd75c7d8da8971d0d78f82d78c017e686fb5bb0 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 Signed-off-by: Junio C Hamano ---