vcs: Use commit date as modification time when creating archives. #4247

This commit is contained in:
Martin Bornhold 2016-09-27 16:33:55 +02:00
parent e994e7e7b1
commit 04f3b7803b

View file

@ -860,7 +860,7 @@ class BaseCommit(object):
prefix = self._validate_archive_prefix(prefix)
mtime = mtime or time.time()
mtime = mtime or time.mktime(self.date.timetuple())
file_info = []
cur_rev = self.repository.get_commit(commit_id=self.raw_id)