If git_config_rename_section() fails, rename_ref() used to return
1, which
left HEAD pointing to an absent refs/heads file (since the actual
renaming
had already occurred).
Signed-off-by: Lars Hjemli <redacted>
This makes sense in addition to my patch, if the renaming
fails for any of the other possible reasons.
-Geert