{"thread":{"id":"13428","subject":"How to (re-)create .git/logs/refs","startedAt":"2008-05-08T09:48:43Z","lastAt":"2008-05-08T09:48:43Z","messageCount":1,"participants":["Holger Schurig"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"76363","messageId":"200805081148.43657.hs4233@mail.mn-solutions.de","threadId":"13428","inReplyTo":null,"subject":"How to (re-)create .git/logs/refs","fromName":"Holger Schurig","fromEmail":"hs4233@mail.mn-solutions.de","sentAt":"2008-05-08T09:48:43Z","receivedAt":"2008-05-08T09:48:43Z","isPatch":false,"sender":{"key":"hs4233@mail.mn-solutions.de","avatar":null},"body":"Hi !\n\nI have an old SVN project with lots of commits from 2005 to 2008\nconverted. This was a month ago. In the mean-time, I've made\nsome commits from git as well.\n\n\"git log\" shows both types of commit quite nicely.\n\n\"git checkout <sha1>\" works also correctly, for arbitrary ancient\nSHA1s.\n\n\"git checkout @{2007-04-01}\" doesn't work. I get an error like\nthis:\n\n  warning: Log for '' only goes back to Thu, 8 May 2008 09:35:38 +0000.\n  fatal: bad object @{2007-04-01}\n\nHowever, \"git checkout @{2008-05-01}\" works, because this commit\ncome from git direct, not implicitly from SVN. It seems that\nneiver \"git svn clone\" nor \"examples/git-svnimport.perl\"\ncreates/updates .git/logs/refs when it creates commits from an\nold SVN repository.\n\n\nSo my question:\n\na) is there a way to re-create .git/logs/refs ?\n\nb) is there a simple way to get a list of ISO-dates and\n   associated SHA1?  Then I could use a little python code to\n   determine the SHA1 id that corresponds to some date (I need\n   to access old versions of the source via bitbake and/or\n   www.openembedded.org, so adding a custom fetch method with\n   some python magic is a non-brainer).\n"}]}