quilt refresh behaves badly with patched files with spaces in path or filename

Bug #1993080 reported by i30817
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
quilt (Ubuntu)
New
Undecided
Unassigned

Bug Description

quilt, the utility to patch files programmatically in linux is not very useful when the files have a space or more in the name or path.

It actually works, but quilt refresh will create a diff file where the file headers, for instance:

--- CQM.orig/dlg/santa monica/jeanette.dlg
+++ CQM/dlg/santa monica/jeanette.dlg

have no tab at the end, so quilt push will actually apply the patch, but quilt pop will say it can't find the files to 'pop'.

git-diff apparently always adds a tab at the end probably to prevent this nonsense.

This is very obscure information, and it's unlikely people will find out, and will simply not use quilt, or worse use it and then discover the limitation much later.

I can't change the names btw. That quilt even allows the option of 'working around' this in this way and that git-diff will do this by default indicate that there is some purity argument going on (even without any idea of the history of this decision), but at least i'd like the option to follow the git-diff format on refreshes so this doesn't happen.

source of the tab information (i verified it works): https://stackoverflow.com/a/39131279/214260

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: quilt 0.66-2.1
ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
Uname: Linux 5.15.0-50-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: GNOME
Date: Sun Oct 16 21:34:58 2022
InstallationDate: Installed on 2021-06-05 (498 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
PackageArchitecture: all
SourcePackage: quilt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
i30817 (i30817) wrote :
description: updated
description: updated
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.