connect.c: remove a few globals by using git_config callback data