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:
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.
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:
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.