remote rename: warn when refspec was not updated
commit1822b86a515af708e2259bae2b6a1f2052a2d3aa
authorMartin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Sat, 3 Sep 2011 15:26:59 +0000 (3 11:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Sep 2011 04:39:58 +0000 (11 21:39 -0700)
tree8814478e2490f1bdd2fec2720ca18ea8580fb031
parent60e5eee0f1a70e09f28d1e55b3aaddb59eeea887
remote rename: warn when refspec was not updated

When renaming a remote, we also try to update the fetch refspec
accordingly, but only if it has the default format. For others, such
as refs/heads/master:refs/heads/origin, we are conservative and leave
it untouched. Let's give the user a warning about refspecs that are
not updated, so he can manually update the config if necessary.

Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c