t7406: avoid having git commands upstream of a pipe