fix test_fetch_git to propagate error