Emil Laine
Emil Laine

Reputation: 42828

CVS checkout: invalid character in directory name

I'm trying to clone an old CVS repository with:

cvs -z3 -d:pserver:[email protected]:/cvsroot/ivan co -P ivan

However, one of the directories in the repository contains a seemingly invalid character in its name, shown as in ViewVC and as ? in the error message cvs co gives me:

cvs [checkout aborted]: cannot make directory CVS in ivan/Doc/Ty?t: No such file or directory

How can I fix this? I'm okay with excluding the directory from the checkout if renaming it isn't possible.

Upvotes: 1

Views: 271

Answers (2)

Emil Laine
Emil Laine

Reputation: 42828

I solved this by running the co command twice.

On the first run, CVS stops the checkout when it encounters the directory with the invalid name. On the second run, it adds all the remaining files it didn't import on the first run (except the invalid directory).

It also complains cvs checkout: cannot remove ivan/Doc/Ty?t: No such file or directory after the second co. The directory is there, named Ty%F6t, but it's empty.

Upvotes: 1

DominicEU
DominicEU

Reputation: 3631

You could try using .cvsignore. You can find details here. Assuming this is what you're trying to check out, try creating a .cvsignore file with the following it.

Doc

Upvotes: 0

Related Questions