rename_ref(): only print a warning when config-file update fails
commitd26f9fef470443dfb0d09c08341634208f4fb6f7
authorLars Hjemli <hjemli@gmail.com>
Fri, 6 Apr 2007 08:33:06 +0000 (6 10:33 +0200)
committerJunio C Hamano <junkio@cox.net>
Fri, 6 Apr 2007 23:54:37 +0000 (6 16:54 -0700)
treeb0efe2652bc5647891ace0c8f28a5f40da7655c3
parent08b984fb5456c23b04c573f9021141ce27af707d
rename_ref(): only print a warning when config-file update fails

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 <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c