Fix bug when using hash # in git url