From: John te Bokkel / Tempus Date: Thu, 30 Jul 2009 00:52:19 GMT Subject: remote url format in config Message-ID: <47ade73f0907291752k62c66903lc2617a16ec0973bd@mail.gmail.com> In-Reply-To: <47ade73f0907291750v281f3858qd3658c459dd950e8@mail.gmail.com> 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