X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cvs2git.c;h=d438475d03b7ff897a9e2b976a34a75b86c01a80;hb=deb153a75ae1f5eca628a38b911474a69edd242d;hp=97b4300519d24120a518a69a3f559ca0145d1435;hpb=28342a5d328fa11829dbe883837e21e08dd83388;p=git.git diff --git a/cvs2git.c b/cvs2git.c index 97b43005..d438475d 100644 --- a/cvs2git.c +++ b/cvs2git.c @@ -193,7 +193,10 @@ static void update_file(char *line) if (dir) printf("mkdir -p %.*s\n", (int)(dir - name), name); - printf("cvs -q -d %s checkout -r%s -p '%s/%s' > '%s'\n", cvsroot, version, cvsmodule, name, name); + printf("cvs -q -d %s checkout -d .git-tmp -r%s '%s/%s'\n", + cvsroot, version, cvsmodule, name); + printf("mv -f .git-tmp/%s %s\n", dir ? dir+1 : name, name); + printf("rm -rf .git-tmp\n"); printf("git-update-cache --add -- '%s'\n", name); }