From: Sebastian Harl Date: Sun, 23 Feb 2014 03:09:55 +0000 (-0800) Subject: t/coverage.sh: Don't git reset but test the current, possibly dirty, code. X-Git-Tag: sysdb-0.1.0~191 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=f1a9699e6005585760fc3e165a703cb9069de130 t/coverage.sh: Don't git reset but test the current, possibly dirty, code. Instead, only get back files which are not included in the tarball. --- diff --git a/t/coverage.sh b/t/coverage.sh index 4600897..8be94cf 100755 --- a/t/coverage.sh +++ b/t/coverage.sh @@ -38,8 +38,7 @@ if test -d "$srcdir"/.git/; then 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 + git checkout HEAD .gitignore .travis.yml fi ./configure --enable-gcov --disable-shared CFLAGS="-O0 -g"