Set git dir earlier