merge: check config before loading commits