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
This commit is contained in:
Tj Holowaychuk 2010-08-27 13:36:34 -07:00
parent c187a50608
commit b60ca7c604

View file

@ -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