Otherwise we still try to extend the changelog file, only `gitver' is
empty, so the `new' version isn't actually different from the previous
one and `lintian' gets sad.
This setting includes the standard `+' for a dirty tree, which is
clearly superfluous in a `checkout' build.
;;
no)
assign srcpath $toppath
+ if [ -e .git ] && gitver=$(git describe --abbrev=4 --dirty=+ 2>/dev/null); then
+ assign gitversion "$gitver"
+ else
+ assign gitversion none
+ fi
;;
esac