fix git dir on http mode