# git cvsimport fails

4 messages from 2007-05-01 to 2007-05-06. Participants: Thomas Hühn, Florian Weimer.
Thread: https://gitlist.dev/t/7930

## Thomas Hühn, 2007-05-01 15:47

Subject: git cvsimport fails
Message-ID: <87ejm0mtpy.fsf@mid.thomas-huehn.de>
URL: https://gitlist.dev/e/87ejm0mtpy.fsf%40mid.thomas-huehn.de

```
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, 2007-05-01 15:54

Subject: Re: git cvsimport fails
Message-ID: <87abwomtdl.fsf@mid.thomas-huehn.de>
URL: https://gitlist.dev/e/87abwomtdl.fsf%40mid.thomas-huehn.de
In-Reply-To: <87ejm0mtpy.fsf@mid.thomas-huehn.de>

```
Thomas Hühn <newsgroups@thomas-huehn.de> writes:

> 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, 2007-05-06 06:41

Subject: Re: git cvsimport fails
Message-ID: <87lkg2v4ha.fsf@mid.deneb.enyo.de>
URL: https://gitlist.dev/e/87lkg2v4ha.fsf%40mid.deneb.enyo.de
In-Reply-To: <87abwomtdl.fsf@mid.thomas-huehn.de>

```
* 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, 2007-05-06 07:04

Subject: Re: git cvsimport fails
Message-ID: <87ejlu1lh5.fsf@mid.thomas-huehn.de>
URL: https://gitlist.dev/e/87ejlu1lh5.fsf%40mid.thomas-huehn.de
In-Reply-To: <87lkg2v4ha.fsf@mid.deneb.enyo.de>

```
Florian Weimer <fw@deneb.enyo.de> writes:

> * 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

```
