forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-vcs/gitstats: force text processing by grep
Fix for bug 575946 by forcing grep to process commit data as text even when invalid unicode characters appear. Reported-by: Martin Mokrejš Package-Manager: portage-2.2.28
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
dev-vcs/gitstats/files/gitstats-0_pre20151223-grep-force-text.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/gitstats 2016-04-01 09:46:31.000000000 -0300 | ||
+++ b/gitstats 2016-04-01 09:46:18.458667610 -0300 | ||
@@ -327,7 +327,7 @@ | ||
|
||
# Collect revision statistics | ||
# Outputs "<stamp> <date> <time> <timezone> <author> '<' <mail> '>'" | ||
- lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getlogrange('HEAD'), 'grep -v ^commit']).split('\n') | ||
+ lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getlogrange('HEAD'), 'grep -av ^commit']).split('\n') | ||
for line in lines: | ||
parts = line.split(' ', 4) | ||
author = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters