summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-10-22 12:30:24 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-10-24 20:26:41 +0000
commitc62db9e7dc2f59337aec1df55663383c524886cb (patch)
tree808b4c0102b550202d111976391dd1ebd51c31c0 /Functions
parent272119b774a5227e8778e5f86b4a519db89ab0fa (diff)
downloadzsh-c62db9e7dc2f59337aec1df55663383c524886cb.tar.gz
zsh-c62db9e7dc2f59337aec1df55663383c524886cb.tar.xz
zsh-c62db9e7dc2f59337aec1df55663383c524886cb.zip
36912: vcs_info quilt: Tolerate being in child of .pc's parent
Without this, gen-applied-string would only be set when .pc is a child of cwd,
not when it is a child of an ancestor of cwd.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/VCS_Info/VCS_INFO_quilt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt
index bc71cfb7d..29603a27a 100644
--- a/Functions/VCS_Info/VCS_INFO_quilt
+++ b/Functions/VCS_Info/VCS_INFO_quilt
@@ -119,6 +119,7 @@ function VCS_INFO_quilt() {
             applied=()
         fi
         patches=$(<$pc/.quilt_patches)
+        patches=`builtin cd -q "${pc:h}" && print -r - ${patches:A}`
     fi
     if zstyle -t "${context}" get-unapplied; then
         # This zstyle call needs to be moved further up if `quilt' needs