From c6109dbbfb587e0827a21f70823692951920d13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Tue, 5 Dec 2017 12:46:08 +0100 Subject: [PATCH] Fix awk gensub call in author_line_count.sh script. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NOTRY=TRUE Bug: None Change-Id: I706cf0a57e17f765bf90ccaad245a2c5573d8e0c Reviewed-on: https://webrtc-review.googlesource.com/29740 Reviewed-by: Patrik Höglund Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#21109} --- rtc_tools/author_line_count.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc_tools/author_line_count.sh b/rtc_tools/author_line_count.sh index 8d67a6d8ea..f99b3c0f57 100755 --- a/rtc_tools/author_line_count.sh +++ b/rtc_tools/author_line_count.sh @@ -16,7 +16,7 @@ git log "$@" --pretty=format:%ae --shortstat \ | gawk ' /^[^ ]/ { /* Some author "email addresses" have a trailing @svn-id, strip that out. */ - author = gensub(/^([^@]*@[^@]*).*/, "\\1", "", $1); + author = gensub(/^([^@]*@[^@]*).*/, "\\1", "g", $1); } /^ .*insertion/ { total[author] += $1 } /^ .*deletion/ { total[author] -= $1 }