summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2024-05-14 12:53:55 +0200
committerAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2024-05-15 01:43:20 +0200
commit70324d37b3fbd854aa670943425d540c96e43914 (patch)
tree715fe797427f3b73bf830b0d17d9b3cfa6ebd46e
parent4dd159207a5a8b1ef8f7fc719e470b55c93f24f0 (diff)
downloadquilt-master.tar.gz
patch_format: escape all occurences of %HEADmaster
[In addition, escape backslash (\) as well.] Signed-off-by: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
-rw-r--r--quilt/scripts/patchfns.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/quilt/scripts/patchfns.in b/quilt/scripts/patchfns.in
index aefb279..2db4c82 100644
--- a/quilt/scripts/patchfns.in
+++ b/quilt/scripts/patchfns.in
@@ -1073,7 +1073,7 @@ patch_format()
{
local prefix=${QUILT_PATCHES_PREFIX:+$SUBDIR_DOWN$QUILT_PATCHES/}
- echo -n "${prefix/\%/%%}%s"
+ echo -n "${prefix//[%\\]/&&}%s"
}
setup_colors()