a single `path_to_url` function with tests
allow stderr output from git clone for these 2 tests
backwardcompat fixes for py3
Merge pull request #1330 from qwcode/path_to_url

a single `path_to_url` function with tests