remote url format in config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]