Rework if pynag.Utils.GitRepo() code