# git-cvsimport bug

2 messages from 2007-11-27 to 2007-11-28. Participants: Emanuele Giaquinta, Jeff King.
Thread: https://gitlist.dev/t/11035

## Emanuele Giaquinta, 2007-11-27 15:01

Subject: git-cvsimport bug
Message-ID: <20071127150136.GA50697@orion.lan>
URL: https://gitlist.dev/e/20071127150136.GA50697%40orion.lan

```
Hi,

a call to git-cvsimport after a 'git-pack-refs --all' seems to mess up
the origin branch, because the first new change is committed with no
parent (git-cvsimport reports 'Parent ID (empty)').
It does not happen if I disable loose refs pruning with --no-prune. A
tiny test repo you can use to reproduce the problem is
mextli.tomaw.net/~exg/lzf.tar. Is it expected?

Thanks,

Emanuele Giaquinta

```

## Jeff King, 2007-11-28 16:57

Subject: Re: git-cvsimport bug
Message-ID: <20071128165746.GC20308@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20071128165746.GC20308%40coredump.intra.peff.net
In-Reply-To: <20071127150136.GA50697@orion.lan>

```
On Tue, Nov 27, 2007 at 04:01:36PM +0100, Emanuele Giaquinta wrote:

> a call to git-cvsimport after a 'git-pack-refs --all' seems to mess up
> the origin branch, because the first new change is committed with no
> parent (git-cvsimport reports 'Parent ID (empty)').
> It does not happen if I disable loose refs pruning with --no-prune. A
> tiny test repo you can use to reproduce the problem is
> mextli.tomaw.net/~exg/lzf.tar. Is it expected?

Some of git-cvsimport is quite old, and it accesses the ref files
directly. It should be fairly easy to fix; I will post a patch in a few
minutes.

-Peff

```
