Specify git log format

The script expects the git log output to be in the default "medium"
format for parsing to work correctly. Explicitly request the medium
format rather than assuming that the user has not configured an
alternate output format.

Change-Id: Ie9dc73ef12ffd48e85d52ac0fd27c6ef770ed478