Commit 80617c83 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 365241: Changing the context of a patch fails - Patch by Fré©ric Buclin…

Bug 365241: Changing the context of a patch fails - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
parent 10682bcf
...@@ -222,6 +222,9 @@ sub setup_patch_readers { ...@@ -222,6 +222,9 @@ sub setup_patch_readers {
&& Bugzilla->params->{'cvsroot_get'}) && Bugzilla->params->{'cvsroot_get'})
{ {
require PatchReader::AddCVSContext; require PatchReader::AddCVSContext;
# We need to set $cvsbin as global, because PatchReader::CVSClient
# needs it in order to find 'cvs'.
$main::cvsbin = Bugzilla->localconfig->{cvsbin};
$last_reader->sends_data_to( $last_reader->sends_data_to(
new PatchReader::AddCVSContext($context, Bugzilla->params->{'cvsroot_get'})); new PatchReader::AddCVSContext($context, Bugzilla->params->{'cvsroot_get'}));
$last_reader = $last_reader->sends_data_to; $last_reader = $last_reader->sends_data_to;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment