# trouble getting git cvsimport working

4 messages from 2009-01-10 to 2009-01-10. Participants: Caleb Cushing, Johannes Schindelin.
Thread: https://gitlist.dev/t/17076

## Caleb Cushing, 2009-01-10 13:16

Subject: trouble getting git cvsimport working
Message-ID: <81bfc67a0901100516w10ea77e8n8734713b071d69b9@mail.gmail.com>
URL: https://gitlist.dev/e/81bfc67a0901100516w10ea77e8n8734713b071d69b9%40mail.gmail.com

```
not sure what I'm doing wrong.

actual cvs command

cvs -d :pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot co gentoo-x86

what I'm trying

git cvsimport -a -v -d
:pserver:anonymous@anoncvs.gentoo.org/var/cvsroot/ gentoo-x86 -C
portage

Initialized empty Git repository in /home/portdev/cvs/portage/.git/
Running cvsps...
parse error on third token
WARNING: malformed CVS version: no data
WARNING: malformed CVS version str: (UNKNOWN CLIENT)
WARNING: Your CVS client version:
[(UNKNOWN CLIENT)]
and/or server version:
[(UNKNOWN SERVER)]
are too old to properly support the rlog command.
This command was introduced in 1.11.1.  Cvsps
will use log instead, but PatchSet numbering
may become unstable due to pruned empty
directories.

sh: cvs: command not found
DONE; creating master branch
fatal: refs/heads/origin: not a valid SHA1
fatal: master: not a valid SHA1
fatal: You are on a branch yet to be born
checkout failed: 32768

help would be appreciated.
-- 
Caleb Cushing

http://xenoterracide.blogspot.com

```

## Johannes Schindelin, 2009-01-10 14:25

Subject: Re: trouble getting git cvsimport working
Message-ID: <alpine.DEB.1.00.0901101524310.30769@pacific.mpi-cbg.de>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0901101524310.30769%40pacific.mpi-cbg.de
In-Reply-To: <81bfc67a0901100516w10ea77e8n8734713b071d69b9@mail.gmail.com>

```
Hi,

On Sat, 10 Jan 2009, Caleb Cushing wrote:

> sh: cvs: command not found

What's this?

Ciao,
Dscho

```

## Caleb Cushing, 2009-01-10 14:35

Subject: Re: trouble getting git cvsimport working
Message-ID: <81bfc67a0901100635i4d33c294x393a8d2dfc2b0e0d@mail.gmail.com>
URL: https://gitlist.dev/e/81bfc67a0901100635i4d33c294x393a8d2dfc2b0e0d%40mail.gmail.com
In-Reply-To: <alpine.DEB.1.00.0901101524310.30769@pacific.mpi-cbg.de>

```
>  > sh: cvs: command not found
>
>
> What's this?

does git need more than cvsps to work (I assumed my package manager
had installed all needed deps)? I installed cvs after you pointed that
out...

git cvsimport -a -v -d
:pserver:anonymous@anoncvs.gentoo.org/var/cvsroot/ gentoo-x86 -C
portage
Initialized empty Git repository in /home/portdev/cvs/portage/.git/
Running cvsps...
parse error on third token
WARNING: malformed CVS version str: Server: (unknown)
WARNING: Your CVS client version:
[Client: Concurrent Versions System (CVS) 1.12.12 (client)]
and/or server version:
[Server: (unknown)]
are too old to properly support the rlog command.
This command was introduced in 1.11.1.  Cvsps
will use log instead, but PatchSet numbering
may become unstable due to pruned empty
directories.

cvs log: warning: failed to open /home/portdev/.cvspass for reading:
No such file or directory
cvs log: in directory .:
cvs [log aborted]: there is no version here; run 'cvs checkout' first
DONE; creating master branch
fatal: refs/heads/origin: not a valid SHA1
fatal: master: not a valid SHA1
fatal: You are on a branch yet to be born
checkout failed: 32768
-- 
Caleb Cushing

http://xenoterracide.blogspot.com

```

## Johannes Schindelin, 2009-01-10 14:55

Subject: Re: trouble getting git cvsimport working
Message-ID: <alpine.DEB.1.00.0901101553590.30769@pacific.mpi-cbg.de>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0901101553590.30769%40pacific.mpi-cbg.de
In-Reply-To: <81bfc67a0901100635i4d33c294x393a8d2dfc2b0e0d@mail.gmail.com>

```
Hi,

On Sat, 10 Jan 2009, Caleb Cushing wrote:

> git cvsimport -a -v -d
> :pserver:anonymous@anoncvs.gentoo.org/var/cvsroot/ gentoo-x86 -C
> portage
> Initialized empty Git repository in /home/portdev/cvs/portage/.git/
> Running cvsps...
> parse error on third token
> WARNING: malformed CVS version str: Server: (unknown)
> WARNING: Your CVS client version:
> [Client: Concurrent Versions System (CVS) 1.12.12 (client)]
> and/or server version:
> [Server: (unknown)]
> are too old to properly support the rlog command.
> This command was introduced in 1.11.1.  Cvsps
> will use log instead, but PatchSet numbering
> may become unstable due to pruned empty
> directories.

This is the problem.

> cvs log: warning: failed to open /home/portdev/.cvspass for reading:
> No such file or directory
> cvs log: in directory .:
> cvs [log aborted]: there is no version here; run 'cvs checkout' first

And this is the solution: Just try

	$ cvs -d :pserver:anonymous@anoncvs.gentoo.org/var/cvsroot/ \
		co gentoo-x86
	$ cd gentoo-x86
	$ git cvsimport -v

(I assume it is a live repository, so -a is dangerous.)

Hth,
Dscho

```
