chiark / gitweb /
Test suite: t-commit: honour $majorv for major version
[dgit.git] / tests / lib
index 82ef7c269d2fb3b914644579ee7319c85e3ce7a3..9b8894ef74b60569b77c46da8753c5bab0474bd2 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -654,7 +654,7 @@ t-gbp-example-prep () {
 
 t-commit () {
        local msg=$1
-       v=${2:-1.$revision}
+       v=${2:-${majorv:-1}.$revision}
        dch -v$v --distribution ${3:-unstable} "$1"
        git add debian/changelog
        debcommit