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:
parent
34732ba208
commit
f4fbcddd44
|
@ -226,6 +226,9 @@ clone_user_rev() {
|
||||||
if test -z "$leaveDotGit"; then
|
if test -z "$leaveDotGit"; then
|
||||||
echo "removing \`.git'..." >&2
|
echo "removing \`.git'..." >&2
|
||||||
find $dir -name .git\* | xargs rm -rf
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue