* git-am: can't apply to an empty repository
@ 2008-10-08 13:24 Imre Deak
0 siblings, 0 replies; only message in thread
From: Imre Deak @ 2008-10-08 13:24 UTC (permalink / raw)
To: git
When trying to build a repository from mbox format patches I have the
following problem:
Creating a hypothetical mbox patch:
$ echo "From: imre deak <imre.deak@gmail.com>" > 1.patch
$ touch a
$ git diff --no-index /dev/null a >> 1.patch
$ cat 1.patch
From: imre deak <imre.deak@gmail.com>
diff --git a/a b/a
new file mode 100644
index 0000000..e69de29
Apply it to a newly created repository:
$ git init
Initialized empty Git repository in /home/imde/conv/git/.git/
$ git am 1.patch
fatal: HEAD: not a valid SHA1
fatal: bad revision 'HEAD'
Is this supposed to work at all?
--Imre
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-08 13:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 13:24 git-am: can't apply to an empty repository Imre Deak
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).