mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
Handle spaces in contributor's name for git-contrib
This commit is contained in:
parent
ed1c111569
commit
30551aade3
|
|
@ -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
|
||||
Loading…
Reference in a new issue