Hi, On Thu, Mar 05, 2009 at 02:25:39AM -0500, Matt Enright wrote: > On Thu, 2009-03-05 at 07:36 +0100, stoecher@xxxxxx wrote: > > Hi, > > > > being new to git I did some experiments with commits looking at the hashes. What I observed: > > * The same commit (same file, same committer, same message) into different empty repositories (git init) gives different hashes. So I assume that also the time of the commit influences the hash. Is this intended? For what reason? Yes, commit time and commit date influence the hash. But the hashes for the corresponding trees should be the same. Check the output of git rev-parse $commit^{tree}. If you want to reproduce the exact same commit, you need to set the env variables GIT_AUTHOR_DATE and GIT_COMMITTER_DATE. (Not sure, but GIT_AUTHOR_DATE might be handled by git am.) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html