summaryrefslogtreecommitdiff
path: root/bin
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 19:46:42 +0200
commit2e353b8daadc588b02fe7c7df5b7f185187e9d58 (patch)
treeefeb5731813148b2b8495fea76f5f0f374029bd2 /bin
parentb74119aed7f0e5761c70d9f800e1675832a717aa (diff)
lo-commit-stat: avoid problems whit '%' in the commit message
Change-Id: Ia10bac649cc078f6ef39002d280dcff7e5d0b06d
Diffstat (limited to 'bin')
-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