t: translate SIGINT to an exit
[gitweb.git] / t / test-lib.sh
index c09677802cce067a946a2550cdd2d8ef33434e81..f4ba3ff972680065469f063c83ae90207bbab0b4 100644 (file)
@@ -299,6 +299,7 @@ die () {
 
 GIT_EXIT_OK=
 trap 'die' EXIT
+trap 'exit $?' INT
 
 # The user-facing functions are loaded from a separate file so that
 # test_perf subshells can have them too