fail test_fetch_reference properly if fetch succeeds unexpectedly
diff --git a/regress/cmdline/fetch.sh b/regress/cmdline/fetch.sh
index ce08ae3..d62e1ba 100755
--- a/regress/cmdline/fetch.sh
+++ b/regress/cmdline/fetch.sh
@@ -676,7 +676,7 @@ function test_fetch_reference {
ret="$?"
if [ "$ret" == "0" ]; then
echo "got fetch command succeeded unexpectedly" >&2
- test_done "$testroot" "$ret"
+ test_done "$testroot" "1"
return 1
fi