Handle .git in origin url