pushRemote value not updated on git remote rename

2019-01-22 Thread jfbu
Hi, with git version 2.16.3 on mac os x, (fink installed) I did ``` $ git remote rename origin monfork ``` Then I checked .git/config, all was fine but for ``` [branch "master"] pushRemote = origin remote = upstream merge = refs/heads/master ``` Shouldn

Re: git remote rename problem with trailing \\ for remote.url config entries (on Windows)

2018-04-10 Thread Junio C Hamano
is fix. > > At first, I was puzzled by this, because I expected `git remote rename` to > be backed by the `git_config_copy_or_rename_section_in_file()` function > (which my patch series does not touch). I played around with this test data: [sec "tio"]

Re: git remote rename problem with trailing \\ for remote.url config entries (on Windows)

2018-04-10 Thread Johannes Schindelin
Hi, [I know, blast from the past...] On Mon, 13 Feb 2017, Junio C Hamano wrote: > Marc Strapetz writes: > > > One of our users has just reported that: > > > > $ git remote rename origin origin2 > > > > will turn following remote entry: > > &g

[PATCH v2 13/37] remote: rename 'new' variables

2018-02-14 Thread Brandon Williams
Rename C++ keyword in order to bring the codebase closer to being able to be compiled with a C++ compiler. Signed-off-by: Brandon Williams --- builtin/remote.c | 66 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/builtin/remote.c

[PATCH v2 25/37] remote: rename 'new' variables

2018-02-14 Thread Brandon Williams
Rename C++ keyword in order to bring the codebase closer to being able to be compiled with a C++ compiler. Signed-off-by: Brandon Williams --- remote.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/remote.c b/remote.c index 4e93753e1..2922dca07 100644

[PATCH 13/37] remote: rename 'new' variables

2018-01-29 Thread Brandon Williams
Rename C++ keyword in order to bring the codebase closer to being able to be compiled with a C++ compiler. Signed-off-by: Brandon Williams --- builtin/remote.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/builtin/remote.c b/bu

[PATCH 25/37] remote: rename 'new' variables

2018-01-29 Thread Brandon Williams
Rename C++ keyword in order to bring the codebase closer to being able to be compiled with a C++ compiler. Signed-off-by: Brandon Williams --- remote.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/remote.c b/remote.c index 4e93753e1..6f79881f6 100644 --- a

Re: git remote rename problem with trailing \\ for remote.url config entries (on Windows)

2017-02-13 Thread Junio C Hamano
Marc Strapetz writes: > 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 f

git remote rename problem with trailing \\ for remote.url config entries (on Windows)

2017-02-13 Thread Marc Strapetz
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&quo

[PATCH v2 1/2] remote rename: demonstrate a bogus "remote exists" bug

2017-01-19 Thread Johannes Schindelin
hed git config --global --unset remote.upstream.prune && + git config --global remote.upstream.prune true && + git -C four.four remote rename origin upstream +' + cat >remotes_origin <

[PATCH 1/2] remote rename: demonstrate a bogus "remote exists" bug

2017-01-17 Thread Johannes Schindelin
cd four.four && + git config remote.upstream.prune true && + git remote rename origin upstream + ) +' + cat >remotes_origin <

remote rename

2014-03-08 Thread Matan Nassau
Hi, If I have a remote branch origin/topic/foo, running $ git remote rename origin renamed seems to leave directory traces behind: .git/refs/remotes/origin/topic I expected to see .git/refs/remotes/renamed/topic/foo but not .git/refs/remotes/origin. Is this a glitch? I see this with Git