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 }