init: call set_git_dir_init() from within init_db()