There is a bug in the way the url is stored for remote urls. It is really a minor problem and easily worked around. However it may a good idea for the future to url encode that string.
What happened:
added a remote with two consecutive spaces in the url.
git remote add local_remote /dir/folder with\ \ -\ \ two consecutive\ \ spaces/project.git
git push local_remote master
error: url with only single spaces is not a git repo
the .git/config url is written correctly however it gets munged when it is read from the config.
url = /dir/folder with - two consecutive spaces/project.git
to make it work correctly, just quote it.
url = "/dir/folder with - two consecutive spaces/project.git"
perhaps it would be a good idea to url encode the url when it is first written to the config file.
url = /dir/folder%20with%20%20-%20%20two%20consecutive%20%20spaces/project.git