git-checkout: regression on initial checkout

Bug #1846478 reported by Thomas Faivre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git (Ubuntu)
New
Undecided
Unassigned

Bug Description

Dear Maintainer,

There is a regression in the behavior of git checkout on a new,
unchecked-out git repository in version 1:2.20.1-2ubuntu1 (eoan and disco):

$ 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].

Thank you!

[1]: https://github.com/git/git/commit/8424bfd45b291a56594f0289dc6af22e900a1d88

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.