]> git.ipfire.org Git - thirdparty/git.git/commit - t/t2018-checkout-branch.sh
checkout: add test demonstrating regression with checkout -b on initial commit
authorBen Peart <benpeart@microsoft.com>
Wed, 23 Jan 2019 20:02:00 +0000 (15:02 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Jan 2019 21:22:47 +0000 (13:22 -0800)
commit91e3d7ca9b0194575c1fdbb82b74bef4eb8357a1
tree32e9fef93e1427cc5026b2fe58f98099b325da6d
parent60129c61e55fa5567d8b7ebe21b607e363330f07
checkout: add test demonstrating regression with checkout -b on initial commit

Commit fa655d8411 (checkout: optimize "git checkout -b <new_branch>",
2018-08-16) introduced an unintentional change in behavior for 'checkout -b'
after doing 'clone --no-checkout'.  Add a test to demonstrate the changed
behavior to be used in a later patch to verify the fix.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2018-checkout-branch.sh