Fix git invocations