diff --git a/t/coverage.sh b/t/coverage.sh
index 5bb1de052f4aa5799b79e8491bad9e309cd8b67c..460089753a9d75f733118e26592e205b9b87841a 100755 (executable)
--- a/t/coverage.sh
+++ b/t/coverage.sh
if test -d "$srcdir"/.git/; then
# copy Git database for version-gen.sh
cp -a "$srcdir"/.git .
+
+ # reset all files which are not part of the tarball
+ # (e.g. .gitignore, .travis.yml which would else cause a "dirty" version)
+ git reset --hard
fi
./configure --enable-gcov --disable-shared CFLAGS="-O0 -g"