diff options
author | Vincent van Ravesteijn <vfr@lyx.org> | 2011-11-23 07:31:55 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-23 13:23:33 -0800 |
commit | 5cd75c7d8da8971d0d78f82d78c017e686fb5bb0 (patch) | |
tree | bf3335e4fa4b6949ee87754d9b9f2debd1a94a9d /t/t4033-diff-patience.sh | |
parent | revert --abort: do not leave behind useless sequencer-old directory (diff) | |
download | tgif-5cd75c7d8da8971d0d78f82d78c017e686fb5bb0.tar.xz |
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 't/t4033-diff-patience.sh')
0 files changed, 0 insertions, 0 deletions