Skip to contentSkip to conversation

git cvsimport fails

DISCUSSION Thomas Hühn 2 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 11 lines · Thomas Hühn

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

#2 lore raw

* Thomas Hühn:

Quoted 4 lines

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.

#3 lore raw
Quoted 10 lines · Florian Weimer

* Thomas Hühn:

Quoted 4 lines

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