From: Sebastian Harl Date: Sat, 4 Jan 2014 13:09:25 +0000 (+0100) Subject: t/coverage.sh: Reset files not part of the tarball. X-Git-Tag: sysdb-0.1.0~253 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8635965e9215e01d88d7d4485d98bf6b0c5be6e4;p=sysdb.git 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. --- 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"