From b60ca7c60424fe6476a3911081b157c52837815b Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 27 Aug 2010 13:36:34 -0700 Subject: [PATCH] Fixed git-contrib issue when the username is in a commit msg For example "visionmedia" might be in a submodule commit, so grep fucks up and does not show the contrib properly. The down side of this is that you need to specify the entire user name --- bin/git-contrib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-contrib b/bin/git-contrib index 4e6271a..6767551 100755 --- a/bin/git-contrib +++ b/bin/git-contrib @@ -6,5 +6,5 @@ if test -z "$user"; then else count=`git log --oneline --pretty="format: %an" | grep "$user" | wc -l` test $count -eq 0 && echo "$user did not contribute." && exit 1 - git shortlog | grep "$user" -A $count + git shortlog | grep "$user (" -A $count fi \ No newline at end of file