summaryrefslogtreecommitdiffstats
path: root/test/faildiff.test
diff options
context:
space:
mode:
authorOndřej Lysoněk <olysonek@redhat.com>2020-06-09 15:13:11 +0200
committerJean Delvare <jdelvare@suse.de>2020-06-09 15:13:11 +0200
commit664886c62ae6424f1229972f140403e239dd4267 (patch)
treef8b0fc61bc4e94818f05cdbfb39cd1c2ce61eeeb /test/faildiff.test
parent5e5d19429ff354040de72c775c70fe0ab6f3061b (diff)
downloadquilt-664886c62ae6424f1229972f140403e239dd4267.tar.gz
quilt.el: Fix quilt-editable when QUILT_PATCHES_PREFIX is set
This patch fixes a bug in quilt-editable: if QUILT_PATCHES_PREFIX is set, quilt-editable will always return nil, even if the file being edited is part of the topmost patch. If QUILT_PATCHES_PREFIX is set, then 'quilt top' prints the patch name as a relative path to the patch. Since in quilt-editable we're running 'quilt top' from the top level directory, the printed patch path is in the form $QUILT_PATCHES/patch-name. Later on, we're looking for a cached version of the file that we're editing in .pc/. The patch directories are stored directly under .pc/, rather than .pc/$QUILT_PATCHES/, so we must remove the $QUILT_PATCHES/ prefix from the patch path. Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'test/faildiff.test')
0 files changed, 0 insertions, 0 deletions