summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Clemens Buchacher <drizzd@aon.at>2009-06-01 14:14:40 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-06-01 22:44:51 -0700
commit1f729dca9334ccadbe78768fc792178f4bb8b6e2 (patch)
treee2d06e865f768b4787f3e7a2964a40bb8ea11a3b
parentgit-show-branch.txt: document --date-order option (diff)
downloadtgif-1f729dca9334ccadbe78768fc792178f4bb8b6e2.tar.xz
test-lib: fail if invalid options are passed
Previously, unknown options would be ignored, including any subsequent valid options. Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--t/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index dad1437fa4..6e83ceb360 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -115,7 +115,7 @@ do
--tee)
shift ;; # was handled already
*)
- break ;;
+ echo "error: unknown test option '$1'" >&2; exit 1 ;;
esac
done