Handle spaces in contributor's name for git-contrib

This commit is contained in:
Domenico Rotiroti 2010-08-24 09:28:41 +02:00 committed by Tj Holowaychuk
parent ed1c111569
commit 30551aade3

View file

@ -1,10 +1,10 @@
#!/bin/sh
user=$1
user="$1"
if test -z "$user"; then
echo "user name required." && exit 1
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