From: Martin von Zweigbergk Date: Fri, 2 Sep 2011 00:50:34 +0000 (-0400) Subject: remote: "rename o foo" should not rename ref "origin/bar" X-Git-Tag: v1.7.6.5~10^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/60e5eee0f1a70e09f28d1e55b3aaddb59eeea887?hp=60e5eee0f1a70e09f28d1e55b3aaddb59eeea887 remote: "rename o foo" should not rename ref "origin/bar" When renaming a remote called 'o' using 'git remote rename o foo', git should also rename any remote-tracking branches for the remote. This does happen, but any remote-tracking branches starting with 'refs/remotes/o', such as 'refs/remotes/origin/bar', will also be renamed (to 'refs/remotes/foorigin/bar' in this case). Fix it by simply matching one more character, up to the slash following the remote name. Signed-off-by: Martin von Zweigbergk Signed-off-by: Junio C Hamano ---