login
Header Space

 
 

How to (re-)create .git/logs/refs

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Git Mailing List <git@...>
Date: Thursday, May 8, 2008 - 6:56 am

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?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to (re-)create .git/logs/refs, Holger Schurig, (Thu May 8, 6:56 am)
Re: How to (re-)create .git/logs/refs, Nicolas Pitre, (Thu May 8, 1:28 pm)
Re: How to (re-)create .git/logs/refs, Holger Schurig, (Tue May 13, 2:42 am)
Re: How to (re-)create .git/logs/refs, Johannes Schindelin, (Tue May 13, 7:46 am)
Re: How to (re-)create .git/logs/refs, Holger Schurig, (Tue May 13, 8:13 am)
Re: How to (re-)create .git/logs/refs, Jakub Narebski, (Tue May 13, 9:24 am)
Re: How to (re-)create .git/logs/refs, Holger Schurig, (Tue May 13, 9:50 am)
Re: How to (re-)create .git/logs/refs, Holger Schurig, (Tue May 13, 5:11 am)
Re: How to (re-)create .git/logs/refs, Andreas Ericsson, (Tue May 13, 5:38 am)
Re: How to (re-)create .git/logs/refs, Holger Schurig, (Thu May 8, 8:28 am)
speck-geostationary