chiark / gitweb /
Test suite: t-commit: honour $majorv for major version
[dgit.git] / tests / lib
index 82ef7c2..9b8894e 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