Package: git
Version: 1:2.20.1-2
Severity: normal

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!

-- System Information:
Debian Release: 10.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages git depends on:
ii  git-man          1:2.20.1-2
ii  libc6            2.28-10
ii  libcurl3-gnutls  7.64.0-4
ii  liberror-perl    0.17027-2
ii  libexpat1        2.2.6-2+deb10u1
ii  libpcre2-8-0     10.32-5
ii  perl             5.28.1-6
ii  zlib1g           1:1.2.11.dfsg-1

Versions of packages git recommends:
ii  ca-certificates              20190110
ii  less                         487-0.1+b1
ii  openssh-client [ssh-client]  1:7.9p1-10
ii  patch                        2.7.6-3+deb10u1

Versions of packages git suggests:
ii  gettext-base                          0.19.8.1-9
pn  git-cvs                               <none>
pn  git-daemon-run | git-daemon-sysvinit  <none>
pn  git-doc                               <none>
pn  git-el                                <none>
pn  git-email                             <none>
pn  git-gui                               <none>
pn  git-mediawiki                         <none>
pn  git-svn                               <none>
pn  gitk                                  <none>
ii  gitweb                                1:2.20.1-2

-- no debconf information

  • Bug#941079: git-checkout: regression on initial checkout Thomas Faivre

Reply via email to