t2018: don't lose return code of git commands