From: Andreas Gruenbacher <agruen@suse.de>
To: git@vger.kernel.org
Subject: git am from scratch
Date: Thu, 19 Mar 2009 16:09:24 +0100 [thread overview]
Message-ID: <200903191609.24812.agruen@suse.de> (raw)
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
next reply other threads:[~2009-03-19 15:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-19 15:09 Andreas Gruenbacher [this message]
2009-03-19 16:16 ` git am from scratch 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200903191609.24812.agruen@suse.de \
--to=agruen@suse.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox