summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2012-06-12 19:46:42 +0200
committerPetr Mladek <pmladek@suse.cz>2012-06-12 20:12:18 +0200
commiteeeffb9a9d8e1a84d2d85a13ea84e9d00aed3e58 (patch)
tree9ab58449598207b041e840f5f664f35d936ad7e7
parent0fb4d677b32d944c8796d71ae95a7f41cc47e16c (diff)
lo-commit-stat: avoid problems whit '%' in the commit message
Change-Id: Ia10bac649cc078f6ef39002d280dcff7e5d0b06d
-rwxr-xr-xbin/lo-commit-stat3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat
index 310548ef116c..1a8e6bbae930 100755
--- a/bin/lo-commit-stat
+++ b/bin/lo-commit-stat
@@ -80,6 +80,9 @@ sub standardize_summary($)
my $first_char = lc($1);
$line =~ s/^./$first_char/;
}
+ # print does not like 0% or so
+ $line =~ s/%/%%/g;
+
# FIXME: remove do at the end of line
# remove bug numbers