Use load_repo_head() when reloading refs
commit6d4335337cec7cdde87f63d6662f4d29d05f76ea
authorJonas Fonseca <jonas.fonseca@gmail.com>
Sun, 2 Nov 2014 04:13:58 +0000 (2 00:13 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Sun, 2 Nov 2014 04:13:58 +0000 (2 00:13 -0400)
treecfa4748ad760f466b2aea7d527aa70044fe88177
parent3615bdee4c3d1a0c719fc6b24f25f5745a6f2d92
Use load_repo_head() when reloading refs

This ensures that the HEAD and HEAD ID is always in sync.
src/refdb.c
test/refs/branch-checkout-test