git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: problem with git cvsimport

From
JVJean-François Veillette <jean_francois_veillette@yahoo.ca>
Date
Sep 3, 2007, 00:51 UTC
Message-ID
<5951BCFB-D3EF-4423-86F2-50F1D080721B@yahoo.ca>
In-Reply-To
<A74F186F-7C25-48D5-9354-C74576439AF1@gmail.com>

Answering to myself ... cvsps was the culprit. I reverted to the unmodified 2.1 version (tag 2.1 without any patches from the git repository) and suddently I was able to convert some cvs projects.

But other projects are still causing problem.
- on one project it fail after 2 successful commits with :
	fatal: Not a valid object name refs/heads/DEV_2_1_1
	read-tree failed: 32768
- another is failing on a specific subdirectory (idealy the project  
would be one directory up, in .../Wonder/Ajax/Ajax, but the  
Components subdirectory importation systematicaly fail) :
	09:50:26: git cvsimport -v
	jfveillette@wonder.cvs.sourceforge.net's password:
	Initialized empty Git repository in /Users/jfv/Developement/ 
WebObjects/Wonder/Ajax/Ajax/Components/.git/
	Running cvsps...
	jfveillette@wonder.cvs.sourceforge.net's password:
	cvs_direct initialized to CVSROOT /cvsroot/wonder
	cvs rlog: Logging Wonder/Ajax/Ajax/Components
	DONE; creating master branch
	fatal: refs/heads/origin: not a valid SHA1
	fatal: master: not a valid SHA1
	warning: You appear to be on a branch yet to be born.
	warning: Forcing checkout of HEAD.
	fatal: just how do you expect me to merge 0 trees?
	checkout failed: 256

BTW, the output from « cvsps -g » (generating patches) seem to succeed even when cvsimport fail. Is there a tool that will take the patches from cvsps and directly import them in git ? I tried git-am but it failed.

Again, any pointer is welcome to help resolve issues with importing cvs projects. Thanks to Michael for pointing out cvs2svn,I haven't tried it yet.

- jfv
Le 07-08-31 à 10:31, Jean-François Veillette a écrit :
Show 27 quoted lines
> I can't get git-cvsimport to convert a cvs project to git (full log  
> bellow).
> I always get :
> 	fatal: Not a valid object name refs/heads/HEAD
> 	read-tree failed: 32768
>
> I'm a relatively new to git. I would like to convert my project and  
> track external projects with git.
> But cvsimport seem to fail.  Any pointer to help me resolve the  
> issue is welcome !
>
> thanks,
>
> - jfv
>
> Detail informations ...
>
> host info (uname -a) :
> Darwin localhost 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23  
> 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh  
> powerpc
>
> git --version
> git version 1.5.3.rc7.16.ge340d-dirty
>
> cvsps version 2.1 (got the git repository, merged 'master' with  
> 'multitag')
Previous: Michael HaggertyNext: Simon 'corecode' Schubert
Message 3 of 4 in “problem with git cvsimport”
  1. Jean-François VeilletteAug 31, 2007
  2. Michael HaggertySep 2, 2007
  3. Jean-François VeilletteSep 3, 2007
  4. Simon 'corecode' SchubertSep 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.