threads / discuss / 7183

git-cvsimport: all my files are marked deleted ?

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

## tl;dr

4 messages between Mar 10, 2007 and Apr 4, 2007.

replies: 3people: 3as markdown or json

Xavier Maillard· Mar 10, 2007, 18:09 UTC · lore
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· Mar 10, 2007, 18:51 UTC · re: Xavier Maillard · lore

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

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· Mar 10, 2007, 19:37 UTC · re: Raimund Bauer · lore

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

   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· Apr 4, 2007, 20:22 UTC · re: Raimund Bauer · lore

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

On Sat, Mar 10, 2007 at 07:51:33PM +0100, Raimund Bauer wrote:
Show 7 quoted lines
> 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/

← back to recent threads