From 8635965e9215e01d88d7d4485d98bf6b0c5be6e4 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 4 Jan 2014 14:09:25 +0100 Subject: [PATCH] t/coverage.sh: Reset files not part of the tarball. This way, files like .gitignore and .travis.yml, which are not part of a release, are reset and will not cause a "dirty" version. --- t/coverage.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/coverage.sh b/t/coverage.sh index 5bb1de0..4600897 100755 --- a/t/coverage.sh +++ b/t/coverage.sh @@ -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" -- 2.30.2