# git-cvsimport: all my files are marked deleted ?

4 messages from 2007-03-10 to 2007-04-04. Participants: Xavier Maillard, Raimund Bauer, Frank Lichtenheld.
Thread: https://gitlist.dev/t/7183

## Xavier Maillard, 2007-03-10 18:09

Subject: git-cvsimport: all my files are marked deleted ?
Message-ID: <200703101809.l2AI9lin005409@localhost.localdomain>
URL: https://gitlist.dev/e/200703101809.l2AI9lin005409%40localhost.localdomain

```
Hi,

I am slowly moving all my projects from several SCM into GIT.

I am at converting all my CVS managed project for instance and I
miserably failed at understanding what is happening.

So I installed CVSps as per requested (it is version from Yann
Dirson's repository).

I prepared a local and clean checkout from my CVS.

Then I ran git-cvsimport like this:

 git cvsimport -v -A /tmp/author-conv -a -i -C <directory> <cvs module>

I think it finishes successfully but here are the latest messages:

Generating pack...
Done counting 202 objects.
Deltifying 202 objects.
 100% (202/202) done
Writing 202 objects.
 100% (202/202) done
Total 202 (delta 102), reused 0 (delta 0)
Pack pack-8a456d18c811d4a503d1e64183d223407e9d379d created.
Removing unused objects 100%...
Done.
DONE; creating master branch

Then I went back to <directory> and I just did 'ls'. Directory is
empty (except the .git directory).

git status reports this:

# Changed but not updated:
#   (use "git add/rm <file>..." to update what will be committed)
#
#       deleted:    AUTHORS
#	SKIPPED FILES HERE STILL MARKED AS deleted
#
no changes added to commit (use "git add" and/or "git commit -a")

git branch, git tag -l /et caetera/ have all I got onto my CVS.

What can I do to fix that and have "real" content into my project
?

Regards,
-- 
Xavier

```

## Raimund Bauer, 2007-03-10 18:51

Subject: Re: git-cvsimport: all my files are marked deleted ?
Message-ID: <1173552693.5975.13.camel@localhost>
URL: https://gitlist.dev/e/1173552693.5975.13.camel%40localhost
In-Reply-To: <200703101809.l2AI9lin005409@localhost.localdomain>

```
On Sat, 2007-03-10 at 19:09 +0100, Xavier Maillard wrote:
> Then I went back to <directory> and I just did 'ls'. Directory is
> empty (except the .git directory).

'git checkout -f' is your friend here.

Not long ago I was wondering about the same thing ...

-- 
best regards

  Ray

```

## Xavier Maillard, 2007-03-10 19:37

Subject: Re: git-cvsimport: all my files are marked deleted ?
Message-ID: <200703101937.l2AJbYtn007143@localhost.localdomain>
URL: https://gitlist.dev/e/200703101937.l2AJbYtn007143%40localhost.localdomain
In-Reply-To: <1173552693.5975.13.camel@localhost>

```
   From: Raimund Bauer <ray007@gmx.net>

   On Sat, 2007-03-10 at 19:09 +0100, Xavier Maillard wrote:
   > Then I went back to <directory> and I just did 'ls'. Directory is
   > empty (except the .git directory).

   'git checkout -f' is your friend here.

   Not long ago I was wondering about the same thing ...

Oh great ! You are my safer !

-- 
Xavier

```

## Frank Lichtenheld, 2007-04-04 20:22

Subject: Re: git-cvsimport: all my files are marked deleted ?
Message-ID: <20070404202251.GA21616@planck.djpig.de>
URL: https://gitlist.dev/e/20070404202251.GA21616%40planck.djpig.de
In-Reply-To: <1173552693.5975.13.camel@localhost>

```
On Sat, Mar 10, 2007 at 07:51:33PM +0100, Raimund Bauer wrote:
> On Sat, 2007-03-10 at 19:09 +0100, Xavier Maillard wrote:
> > Then I went back to <directory> and I just did 'ls'. Directory is
> > empty (except the .git directory).
> 
> 'git checkout -f' is your friend here.
> 
> Not long ago I was wondering about the same thing ...

I was hit by this today, too. Luckily I remembered vaguely that
it came up on the list not long ago :)

But it leaves me with the question (to the list): Why doesn't do
git-cvsimport a checkout -f? It seems like the right thing to
do (at the very least for initial imports that create a new repository).

Gruesse,
-- 
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/

```
