vendor: Improve GitInfo
vendor: Improve GitInfo

Closes #3533
Closes #3552

fedelibre/hugo,mitchchn/hugo,gohugoio/hugo,mitchchn/hugo,fedelibre/hugo,gohugoio/hugo,anthonyfok/hugo,digitalcraftsman/hugo,anthonyfok/hugo,mdhender/hugo,mdhender/hugo,digitalcraftsman/hugo,anthonyfok/hugo,gohugoio/hugo,mdhender/hugo,mdhender/hugo,fedelibre/hugo,fedelibre/hugo