Fix git support bug