Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

remote url format in config

From: John te Bokkel / Tempus <hidden>
Date: 2016-06-15 22:47:07

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help