Commit 957558c6 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Jani Nikula
Browse files

dim: Escape double quotes for extract-tags



Trying to suck in a Fixes tag doesn't work currently due to the
double quotes contained within. Escape those so the shell stuff
doesn't get confused and we get the expected results.

Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula's avatarJani Nikula <jani.nikula@intel.com>
parent 3ed2489c
......@@ -1734,6 +1734,11 @@ function rangeish()
fi
}
function escape_quotes
{
sed 's/"/\\"/g'
}
function dim_extract_tags
{
local branch range file tags
......@@ -1755,7 +1760,7 @@ function dim_extract_tags
return 0
fi
tags=$(printf -- "$dim_extract_tags_marker\n%s" "$tags")
tags=$(printf -- "$dim_extract_tags_marker\n%s" "$tags" | escape_quotes)
git filter-branch -f --msg-filter "cat ; echo \"$tags\"" $range
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment