rewrite of google git-repo