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.