repository: fixed read and write git url.

closes #353.