EDIT : Summary: Git does not allow dates until 1973/03/03 09:46:40 (epoch + 100000000 s) specified in its "internal date format" (seconds from epoch). This should allow “20110224” as a short form of “2011-02-24”. - This is not a mistake: Not really, but it is not documented. - Workaround: Do not rely on Git's internal date when you cannot. - Thanks: hobbs
Hello to all,
I have some problems with the Git filter branch that I tracked to the Git commit-tree. Consider this script:
#!/bin/bash
Note that env GIT_AUTHOR_DATE="0 +0000" sets the date using the internal Git format - see the git-commit-tree manpage for details - until 1970-01-01.
But the output of this script (raw commit)
tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 author Jane Doe <jane> 1298477214 +0100 committer Jane Doe <jane> 1298477214 +0100 my first commit -- the tree is empty
Now why is Git ignored by $ GIT_AUTHOR_DATE? If that matters, my git --version gives git version 1.7.1 .
git git-filter-branch
Prestel nué
source share