git rev-parse --verify HEAD: fatal: Needed a single revision

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

git rev-parse --verify HEAD: fatal: Needed a single revision

Arkadiusz Miskiewicz

Hello,

I'm trying to git cvsimport a cvs repository. Process ends with:
DONE.
fatal: Needed a single revision
Can merge only exactly one commit into empty head
Could not merge origin into the current branch.

The fatal comes from:
$ git rev-parse --verify HEAD
fatal: Needed a single revision


What is the problem here and how to fix it?



How to reproduce:
get http://carme.pld-linux.org/~arekm/rpm5.tar.bz2
unpack
cd rpm5
git cvsimport -v -d :pserver:[hidden email]:/cvs rpm


I'm using:
$ git --version
git version 1.5.6.4

--
Arkadiusz Miƛkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: git rev-parse --verify HEAD: fatal: Needed a single revision

Miklos Vajna
On Fri, Aug 01, 2008 at 11:29:04AM +0200, Arkadiusz Miskiewicz <[hidden email]> wrote:
> How to reproduce:
> get http://carme.pld-linux.org/~arekm/rpm5.tar.bz2
> unpack
> cd rpm5
> git cvsimport -v -d :pserver:[hidden email]:/cvs rpm

I did:

git cvsimport -v -d :pserver:[hidden email]:/cvs -o master -C rpm rpm

first time it bailed out with an error, sadly I don't exactly remember,
but it was different to your error. Then I ran it again (of course
without rm -rf rpm) and it finished properly. The cvs checkout and git
HEAD differs only in one file (python/Makefile.in is removed in cvs, but
not in git).

I put it out to http://vmiklos.hu/gitweb/?p=rpm.git, if you are
interested.

> I'm using:
> $ git --version
> git version 1.5.6.4

$ git --version
git version 1.6.0.rc0.14.g95f8.dirty

Not sure if it matters or not.

attachment0 (204 bytes) Download Attachment