threads / discuss / 7930

git cvsimport fails

Subject: git cvsimport fails

## tl;dr

4 messages between May 1, 2007 and May 6, 2007.

replies: 3people: 2as markdown or json

Thomas Hühn· May 1, 2007, 15:47 UTC · lore
Hi

I'm trying to import from a CVS repository and get this error message at the end:

|Commit ID 076fd7d71925bb551320aa20aa8eec68bf218f45
|DONE.
|fatal: Needed a single revision
|Can merge only exactly one commit into empty head
|Could not merge origin into the current branch.

Is my git repo broken, is the CVS repo broken, is it just a shortcoming of cvsimport? Any idea whether it is fixable?

Thomas
Thomas Hühn· May 1, 2007, 15:54 UTC · re: Thomas Hühn · lore

Re: git cvsimport fails

Thomas Hühn <newsgroups@thomas-huehn.de> writes:
Show 11 quoted lines
> I'm trying to import from a CVS repository and get this error message at
> the end:
>
> |Commit ID 076fd7d71925bb551320aa20aa8eec68bf218f45
> |DONE.
> |fatal: Needed a single revision
> |Can merge only exactly one commit into empty head
> |Could not merge origin into the current branch.
>
> Is my git repo broken, is the CVS repo broken, is it just a shortcoming
> of cvsimport? Any idea whether it is fixable?

Okay, should have looked further for suitable git commands. git-fsck tells me that HEAD is not a symbolic ref.

HEAD contains "ref: refs/heads/master", but refs/heads contains no "master", just other files.

Can I find out, which hash master should point at?
Thomas
Florian Weimer· May 6, 2007, 06:41 UTC · re: Thomas Hühn · lore

Re: git cvsimport fails

* Thomas Hühn:
> HEAD contains "ref: refs/heads/master", but refs/heads contains no
> "master", just other files.
>
> Can I find out, which hash master should point at?

After the initial checkout, it should point to "origin"; this is the HEAD of the CVS repository. Of course, if your main development line resides on another branch, you should use that.

Thomas Hühn· May 6, 2007, 07:04 UTC · re: Florian Weimer · lore

Re: git cvsimport fails

Florian Weimer <fw@deneb.enyo.de> writes:
Show 10 quoted lines
> * Thomas Hühn:
>
>> HEAD contains "ref: refs/heads/master", but refs/heads contains no
>> "master", just other files.
>>
>> Can I find out, which hash master should point at?
>
> After the initial checkout, it should point to "origin"; this is the
> HEAD of the CVS repository.  Of course, if your main development line
> resides on another branch, you should use that.
Okay, thanks. I'll enter that.
Thomas

← back to recent threads