utils: gitutils: need to convert to integer

(integrated from trunk branch change 9cb5ac7 by Todd Whiteman <toddw@activestate.com>)