From: Martin von Zweigbergk Date: Sat, 10 Sep 2011 19:39:23 +0000 (-0400) Subject: remote: only update remote-tracking branch if updating refspec X-Git-Tag: v1.7.6.5~10^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b52d00aedeb94f12a16afcef1bb33c989f9b4105?hp=b52d00aedeb94f12a16afcef1bb33c989f9b4105 remote: only update remote-tracking branch if updating refspec 'git remote rename' will only update the remote's fetch refspec if it looks like a default one. If the remote has no default fetch refspec, as in [remote "origin"] url = git://git.kernel.org/pub/scm/git/git.git fetch = +refs/heads/*:refs/remotes/upstream/* we would not update the fetch refspec and even if there is a ref called "refs/remotes/origin/master", we should not rename it, since it was not created by fetching from the remote. Suggested-by: Junio C Hamano Signed-off-by: Martin von Zweigbergk Signed-off-by: Junio C Hamano ---