Code

t/coverage.sh: Reset files not part of the tarball.
[sysdb.git] / t / coverage.sh
index 5bb1de052f4aa5799b79e8491bad9e309cd8b67c..460089753a9d75f733118e26592e205b9b87841a 100755 (executable)
@@ -36,6 +36,10 @@ tar --strip-components=1 -zxf "$srcdir"/sysdb-$V.tar.gz
 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"