git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "John te Bokkel / Tempus" <tanj.tanj@gmail.com>
To: git@vger.kernel.org
Subject: remote url format in config
Date: Wed, 29 Jul 2009 20:52:19 -0400	[thread overview]
Message-ID: <47ade73f0907291752k62c66903lc2617a16ec0973bd@mail.gmail.com> (raw)
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

       reply	other threads:[~2009-07-30  0:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <47ade73f0907291750v281f3858qd3658c459dd950e8@mail.gmail.com>
2009-07-30  0:52 ` John te Bokkel / Tempus [this message]
2009-07-30 11:41   ` [PATCH] config: Keep inner whitespace verbatim Björn Steinbrink

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47ade73f0907291752k62c66903lc2617a16ec0973bd@mail.gmail.com \
    --to=tanj.tanj@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).