Git development
 help / color / mirror / Atom feed
* git am from scratch
@ 2009-03-19 15:09 Andreas Gruenbacher
  2009-03-19 16:16 ` Eric Raible
  2009-03-19 20:18 ` Jeff King
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Gruenbacher @ 2009-03-19 15:09 UTC (permalink / raw)
  To: git

Hello,

lates git (e986ceb0): there is a bug in git am when trying to recreate the 
entire history of a repository:

	$ git format-patch --stdout rcs-history \
		| ( rm -rf fOo && mkdir fOo && cd fOo && git init && git am )
	Initialized empty Git repository in /home/agruen/git/patch/foo/.git/
	fatal: HEAD: not a valid SHA1
	fatal: bad revision 'HEAD'

When the first commit is added by hand instead, git am will import the rest of 
the mbox without problems. This is annoying because it's at least not 
immediately obvious how to recreate the initial commit with all the metadata.

Is this easily fixed?

Thanks,
Andreas

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

end of thread, other threads:[~2009-03-20  4:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 15:09 git am from scratch Andreas Gruenbacher
2009-03-19 16:16 ` Eric Raible
2009-03-19 20:18 ` Jeff King
2009-03-19 20:42   ` Andreas Gruenbacher
2009-03-19 21:02     ` Jeff King
2009-03-19 21:57       ` Junio C Hamano
2009-03-20  1:06       ` Andreas Gruenbacher
2009-03-20  4:39         ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox