#777 Fix SRPM import for files with a backslash in the name
Opened by praiskup. Modified
praiskup/rpkg praiskup-backslash  into  master

Download 777.patch

For packages like open-vm-tools, there are files containing a backslash
in their names. In such cases, the standard 'git ls-files' output gets
escaped and quoted, making it difficult to parse:

$ git ls-files
.gitignore
changelog
open-vm-tools-gcc16.patch
open-vm-tools-sigc++3.patch
open-vm-tools.conf
open-vm-tools.spec
"run-vmblock\\x2dfuse.mount"
sources
vgauthd.service
vmtoolsd.pam
vmtoolsd.service

We'd have to strip double-quotes, and double back-slashes.

It is easier to use the '-z' option, as Git doesn't escape backslashes
when using null-byte delimiters. This also allows us to clean up the
empty repository check.

Metadata