git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git remote rename problem with trailing \\ for remote.url config entries (on Windows)
@ 2017-02-13 16:49 Marc Strapetz
  2017-02-13 18:47 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Strapetz @ 2017-02-13 16:49 UTC (permalink / raw)
  To: git

One of our users has just reported that:

$ git remote rename origin origin2

will turn following remote entry:

[remote "origin"]
	url = c:\\repo\\
	fetch = +refs/heads/*:refs/remotes/origin/*

into following entry for which the url is skipped:

[remote "origin2"]
[remote "origin2"]
	fetch = +refs/heads/*:refs/remotes/origin2/*

I understand that this is caused by the trailing \\ and it's easy to 
fix, but 'git push' and 'git pull' work properly with such URLs and a

$ git clone c:\repo\

will even result in the problematic remote-entry. So I guess some kind 
of validation could be helpful.

Tested with git version 2.11.0.windows.1

-Marc





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-10 23:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13 16:49 git remote rename problem with trailing \\ for remote.url config entries (on Windows) Marc Strapetz
2017-02-13 18:47 ` Junio C Hamano
2018-04-10 22:35   ` Johannes Schindelin
2018-04-10 23:31     ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).