Collect the revision number from the checkout, and delay checking
against the changelog.
cd $srcpath
[ "$(git ls-files -m)" = "" ] ||
warn "working tree has uncommitted changes"
cd $srcpath
[ "$(git ls-files -m)" = "" ] ||
warn "working tree has uncommitted changes"
- gitver=$(git describe --abbrev=4)
+## Maybe check out a copy of the source.
+case "$checkout" in
+ yes)
+ cd $releasepath
+ run git clone -sn $srcpath/.git _source
+ assign srcpath $releasepath/_source
+ cd $srcpath
+ run git checkout -b mdw-build $checkoutrev
+ gitver=$(git describe --abbrev=4)
+ ;;
+esac
+
## Check the version number.
hack_dch_p=no
case "$gitver,$debver" in
## Check the version number.
hack_dch_p=no
case "$gitver,$debver" in
-## Maybe check out a copy of the source.
-case "$checkout" in
- yes)
- cd $releasepath
- run git clone -sn $srcpath/.git _source
- assign srcpath $releasepath/_source
- cd $srcpath
- run git checkout -b mdw-build $checkoutrev
- ;;
-esac
-
## Maybe refresh the build machinery.
case "$setup" in
yes)
## Maybe refresh the build machinery.
case "$setup" in
yes)