It seems git archive
creates a tarball with wrong file modification timestamps, resulting in tar
complaining when unpacking:
$ cd repository
$ git archive -o repository.tar.gz master .
$ find /target/dir -type f -delete
$ tar -C /target/dir -xvf repository.tar.gz
some/file.txt
tar: some/file.txt: time stamp 2014-10-29 13:09:52 is 49.814349986 s in the future
another/file.txt
tar: another/file.txt: time stamp 2014-10-29 13:09:52 is 49.813794938 s in the future
This all happens within seconds on a single machine.
master
). What is the timestamp of that commit, and is it equal to that timestamp2014-10-29 13:09:52
which is in the future? Display the raw value with for examplegit log -n1 --format=format:%at,%ct master
.tar
is reporting timestamps in the future, it's comparing UTC time to UTC time, so timezones don't enter into it.