test: avoid pipes in git related commands for test