aboutsummaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-04-30 00:36:14 -0400
committerJunio C Hamano <gitster@pobox.com>2008-04-29 22:45:27 -0700
commitb3bb5f76e6193db102b063187be854ef3842d89b (patch)
treed9a153b402e7fbb80c96eedc9f2d2f4cfc9a786c /git-cvsimport.perl
parent861f00e3496fd5cd866a73f11826dfc8822a5195 (diff)
downloadgit-b3bb5f76e6193db102b063187be854ef3842d89b.tar.gz
git-b3bb5f76e6193db102b063187be854ef3842d89b.tar.xz
cvsimport: always pass user data to "system" as a list
This avoids invoking the shell. Not only is it faster, but it prevents the possibility of interpreting our arguments in the shell. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 8093996e2..33777e278 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -767,7 +767,7 @@ sub commit {
waitpid($pid,0);
die "Error running git-commit-tree: $?\n" if $?;
- system("git-update-ref $remote/$branch $cid") == 0
+ system('git-update-ref', "$remote/$branch", $cid) == 0
or die "Cannot write branch $branch for update: $!\n";
if ($tag) {