fetchgit: make deterministic with leaveDotGit (close #3392)

There was a few files containing timestamp, so we now remove them.

It shouldn't be a problem for logs. However, index might be. Anyway,
that's better than nothing.
This commit is contained in:
Georges Dubus 2014-07-27 19:13:00 +02:00 committed by Vladimír Čunát
parent 34732ba208
commit f4fbcddd44

View file

@ -226,6 +226,9 @@ clone_user_rev() {
if test -z "$leaveDotGit"; then
echo "removing \`.git'..." >&2
find $dir -name .git\* | xargs rm -rf
else
# The logs and index contain timestamps
find $dir -name .git | xargs -I {} rm -rf {}/logs {}/index
fi
}