Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 6/9] vcs_info quilt: fix unapplied detection on sub-directory



When being in a subdirectory of a "repo" being handled with quilt,
the `quilt unapplied` command returns all the patches because
QUILT_PATCHES is an absolute path (which exists and is a dir) and
quilt considers that .pc should in current directory.
Changing quilt might be overkill and it seems that QUILT_PATCHES
should just be a name, not an absolute path.
---
 Functions/VCS_Info/VCS_INFO_quilt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt
index db15dda..53835dd 100644
--- a/Functions/VCS_Info/VCS_INFO_quilt
+++ b/Functions/VCS_Info/VCS_INFO_quilt
@@ -134,7 +134,7 @@ function VCS_INFO_quilt() {
         # This zstyle call needs to be moved further up if `quilt' needs
         # to be run in more places than this one.
         zstyle -s "${context}" quiltcommand quiltcommand || quiltcommand='quilt'
-        unapplied=( ${(f)"$(QUILT_PATCHES=$patches $quiltcommand --quiltrc /dev/null unapplied 2> /dev/null)"} )
+        unapplied=( ${(f)"$(QUILT_PATCHES=$(basename $patches) $quiltcommand --quiltrc /dev/null unapplied 2> /dev/null)"} )
         unapplied=( ${unapplied:#} )
     else
         unapplied=()
-- 
2.1.0



Messages sorted by: Reverse Date, Date, Thread, Author