Package: git
Version: 1:2.11.0-3+deb9u3
Severity: normal

Dear Maintainer,

If you use git add -N to add a renamed file, git status --porcelain
produces malformed output (it specifies a rename without emitting both
the source and destination names).

Steps to reproduce:

git init
touch foo.txt
git add .
git commit -m first
mv foo.txt bar.txt
git add -N bar.txt
git status --porcelain

I expect this to output:

 R foo.txt -> bar.txt

But instead this outputs:

 R foo.txt

Note that this is fixed in later versions of Git (at least 2.17, but
there might be an earlier release that behaves as expected).

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

Kernel: Linux 4.9.0-7-amd64 (SMP w/1 CPU core)
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/dash
Init: systemd (via /run/systemd/system)

Versions of packages git depends on:
ii  dpkg             1.18.25
ii  git-man          1:2.11.0-3+deb9u3
ii  libc6            2.24-11+deb9u3
ii  libcurl3-gnutls  7.52.1-5+deb9u6
ii  liberror-perl    0.17024-1
ii  libexpat1        2.2.0-2+deb9u1
ii  libpcre3         2:8.39-3
ii  perl             5.24.1-3+deb9u4
ii  zlib1g           1:1.2.8.dfsg-5

Versions of packages git recommends:
ii  less                         481-2.1
ii  openssh-client [ssh-client]  1:7.4p1-10+deb9u3
ii  patch                        2.7.5-1+deb9u1
ii  rsync                        3.1.2-1+deb9u1

Versions of packages git suggests:
ii  gettext-base                          0.19.8.1-2
pn  git-arch                              <none>
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>
pn  gitweb                                <none>

-- no debconf information

Reply via email to