[PATCH v1 0/2] Fix regression in checkout -b
- From
Ben Peart <peartben@gmail.com>
- Date
- Jan 18, 2019, 18:55 UTC
- Message-ID
- <20190118185558.17688-1-peartben@gmail.com>
- In-Reply-To
- <CA+dzEB=DH0irkFaRzkKERSjdZ=EJ+mG3Ri2Xeobx9Yu_eDd+jg@mail.gmail.com>
From: Ben Peart <benpeart@microsoft.com>
Anthony Sottile <asottile@umich.edu> determined that commit fa655d8411 "checkout: optimize "git checkout -b <new_branch>" introduced an unintentional change in behavior for 'checkout -b' after doing a 'clone --no-checkout'. Create a test to demonstrate the regression then fix the bug and update the test to demonstrate the fix.
Base Ref: master Web-Diff: https://github.com/benpeart/git/commit/3930f7fa32 Checkout: git fetch https://github.com/benpeart/git initial-checkout-v1 && git checkout 3930f7fa32
Ben Peart (2):
checkout: add test to demonstrate regression with checkout -b on
initial commit
checkout: fix regression in checkout -b on intitial checkoutbuiltin/checkout.c | 6 ++++++ t/t2018-checkout-branch.sh | 11 +++++++++++ 2 files changed, 17 insertions(+)
base-commit: 77556354bb7ac50450e3b28999e3576969869068
-- 2.19.1.gvfs.1.16.g9d1374d