Skip to content

Commit

Permalink
[PATCH] cvs2git and file permissions
Browse files Browse the repository at this point in the history
git-cvs2git: propagate mode information

Let cvs checkout in a temporary directory rather than
using the pipe option to avoid loss of mode information.

Signed-off-by: Sven Verdoolaege <skimo@liacs.nl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Sven Verdoolaege authored and Linus Torvalds committed Jun 18, 2005
1 parent 28342a5 commit deb153a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cvs2git.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit deb153a

Please sign in to comment.