threads / discuss / 3529

git-cvsimport broken?

Subject: git-cvsimport broken?

## tl;dr

3 messages between Mar 2, 2006 and Mar 2, 2006.

replies: 2people: 2as markdown or json

H. Peter Anvin· Mar 2, 2006, 22:47 UTC · lore

I have started consistently getting the following error trying to do a git-cvsimport into an empty directory:

+ git cvsimport -C /home/hpa/local/kernel-cvs-import -k -u -m -A 
/home/hpa/local/authors -d /home/hpa/local/cvsroot 
project/sw/kernel/linux-2.6
cp: cannot stat `/export/hpa/kernel-cvs-import/.git/refs/heads/origin': 
No such file or directory
fatal: master: not a valid SHA1
fatal: 'HEAD': No such file or directory
usage: git-read-tree (<sha> | -m [-u | -i] <sha1> [<sha2> [<sha3>]])
checkout failed: 256

After failing, the directory in question contains the output of git-init-db, including a HEAD file which contains a symbolic reference to a nonexistent branch (which makes sense, since there has been no checkins yet.)

Have other people seen this problem?
	-hpa
H. Peter Anvin· Mar 2, 2006, 22:54 UTC · re: H. Peter Anvin · lore

Re: git-cvsimport broken?

H. Peter Anvin wrote:
Show 13 quoted lines
> I have started consistently getting the following error trying to do a 
> git-cvsimport into an empty directory:
> 
> + git cvsimport -C /home/hpa/local/kernel-cvs-import -k -u -m -A 
> /home/hpa/local/authors -d /home/hpa/local/cvsroot 
> project/sw/kernel/linux-2.6
> cp: cannot stat `/export/hpa/kernel-cvs-import/.git/refs/heads/origin': 
> No such file or directory
> fatal: master: not a valid SHA1
> fatal: 'HEAD': No such file or directory
> usage: git-read-tree (<sha> | -m [-u | -i] <sha1> [<sha2> [<sha3>]])
> checkout failed: 256
> 

Turns out to be user error (the CVS module is "projects", not "project"), but that probably indicates something that could use a better error message, in particular: if there are zero changesets.

	-hpa

← back to recent threads