t5317: stop losing return codes of git commands