зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
861f00e349
Коммит
b3bb5f76e6
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче