Why am I calling git twice