git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to (re-)create .git/logs/refs
@ 2008-05-08 10:56 Holger Schurig
  2008-05-08 12:28 ` Holger Schurig
  2008-05-08 17:28 ` Nicolas Pitre
  0 siblings, 2 replies; 11+ messages in thread
From: Holger Schurig @ 2008-05-08 10:56 UTC (permalink / raw)
  To: Git Mailing List

Hi !

I have an old SVN project with lots of commits from 2005 to 2008
converted. This was a month ago. In the mean-time, I've made
some commits from git as well.

"git log" shows both types of commit quite nicely.

"git checkout <sha1>" works also correctly, for arbitrary ancient
SHA1s.

"git checkout @{2007-04-01}" doesn't work. I get an error like
this:

  warning: Log for '' only goes back to Thu, 8 May 2008 09:35:38 +0000.
  fatal: bad object @{2007-04-01}

However, "git checkout @{2008-05-01}" works, because this commit
was a git commit, not an SVN-converted one. It seems that
neiver "git svn clone" nor "examples/git-svnimport.perl"
creates/updates .git/logs/refs and that therefore @{date} is
useless here.


So my question:

a) is there a way to re-create .git/logs/refs ?

b) is there a simple way to get a list of ISO-dates and
   associated SHA1?  Then I could use a little python code to
   determine the SHA1 id that corresponds to some date (I need
   to access old versions of the source via bitbake and/or
   www.openembedded.org, so adding a custom fetch method with
   some python magic is a non-brainer).

c) any plan to fix git-svn?

^ permalink raw reply	[flat|nested] 11+ messages in thread
* How to (re-)create .git/logs/refs
@ 2008-05-08  9:48 Holger Schurig
  0 siblings, 0 replies; 11+ messages in thread
From: Holger Schurig @ 2008-05-08  9:48 UTC (permalink / raw)
  To: git

Hi !

I have an old SVN project with lots of commits from 2005 to 2008
converted. This was a month ago. In the mean-time, I've made
some commits from git as well.

"git log" shows both types of commit quite nicely.

"git checkout <sha1>" works also correctly, for arbitrary ancient
SHA1s.

"git checkout @{2007-04-01}" doesn't work. I get an error like
this:

  warning: Log for '' only goes back to Thu, 8 May 2008 09:35:38 +0000.
  fatal: bad object @{2007-04-01}

However, "git checkout @{2008-05-01}" works, because this commit
come from git direct, not implicitly from SVN. It seems that
neiver "git svn clone" nor "examples/git-svnimport.perl"
creates/updates .git/logs/refs when it creates commits from an
old SVN repository.


So my question:

a) is there a way to re-create .git/logs/refs ?

b) is there a simple way to get a list of ISO-dates and
   associated SHA1?  Then I could use a little python code to
   determine the SHA1 id that corresponds to some date (I need
   to access old versions of the source via bitbake and/or
   www.openembedded.org, so adding a custom fetch method with
   some python magic is a non-brainer).

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-05-13 13:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08 10:56 How to (re-)create .git/logs/refs Holger Schurig
2008-05-08 12:28 ` Holger Schurig
2008-05-08 17:28 ` Nicolas Pitre
2008-05-13  6:42   ` Holger Schurig
2008-05-13  9:11     ` Holger Schurig
2008-05-13  9:38       ` Andreas Ericsson
2008-05-13 11:46     ` Johannes Schindelin
2008-05-13 12:13       ` Holger Schurig
2008-05-13 13:24         ` Jakub Narebski
2008-05-13 13:50           ` Holger Schurig
  -- strict thread matches above, loose matches on Subject: below --
2008-05-08  9:48 Holger Schurig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).