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
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue