summaryrefslogtreecommitdiff
path: root/t/t2018-checkout-branch.sh
Commit message (Collapse)AuthorAgeFilesLines
* builtin/checkout: handle -B from detached HEAD correctlyTay Ray Chuan2010-08-091-0/+6
| | | | | | | | | | Ensure that strcmp() isn't called when head is null. Previously we were getting segfaults when checkout -B was done from a detached HEAD. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* builtin/checkout: learn -BTay Ray Chuan2010-06-251-0/+45
| | | | | | | Internally, --track and --orphan still use the 'safe' -b, not -B. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* add tests for checkout -bTay Ray Chuan2010-06-251-0/+121
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>