Code

Fix renaming branch without config file
authorGeert Bosch <bosch@gnat.com>
Thu, 5 Apr 2007 14:20:55 +0000 (10:20 -0400)
committerJunio C Hamano <junkio@cox.net>
Thu, 5 Apr 2007 21:53:22 +0000 (14:53 -0700)
commit01ebb9dc8846af729c13d5d8c9d939a6d1159240
tree9f845d14b1dae32599e4c03f96dc5d257a477c89
parent1e31fbe24fac983b0057af39824f73d65dba6502
Fix renaming branch without config file

Make git_config_rename_section return success if no config file
exists.  Otherwise, renaming a branch would abort, leaving the
repository in an inconsistent state.

[jc: test]

Signed-off-by: Geert Bosch <bosch@gnat.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
config.c
t/t3200-branch.sh