#941079 git-checkout: regression on initial checkout

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Thomas Faivre
Date:
2019-09-24 11:33:05 UTC
Severity:
normal
#941079#5
Date:
2019-09-24 11:19:24 UTC
From:
To:
Dear Maintainer,

There is a regression in the behavior of git checkout on a new,
uncecked-out git repository:

$ git clone --no-checkout <git_repo> /tmp/repo
$ git -C /tmp/repo checkout -b <new_branch> <tag>
$ ls /tmp/repo
<empty, nothing was checked-out>

Bug was fixed in v2.21.0 of git. Patch is available [1].

I known v2.23.x is available in experimental/testing/unstable branch,
but it would be nice to have it in stable too.

Thank you!

#941079#10
Date:
2019-09-24 11:30:49 UTC
From:
To: