summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 249fdc8)
raw | patch | inline | side by side (parent: 249fdc8)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 4 Jan 2014 13:09:25 +0000 (14:09 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 4 Jan 2014 13:09:25 +0000 (14:09 +0100) |
This way, files like .gitignore and .travis.yml, which are not part of a
release, are reset and will not cause a "dirty" version.
release, are reset and will not cause a "dirty" version.
t/coverage.sh | patch | blob | history |
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"