Adapt to different git output formats

Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>