Truncate .git in repo name during validation