From: lpsolit%gmail.com <> Date: Sat, 30 Dec 2006 09:58:28 +0000 (+0000) Subject: Bug 365241: Changing the context of a patch fails - Patch by Frédéric Buclin r=mkanat a=justdave --- diff --git a/Bugzilla/Attachment/PatchReader.pm b/Bugzilla/Attachment/PatchReader.pm index 00623dcf2f..5dbffb5c9d 100644 --- a/Bugzilla/Attachment/PatchReader.pm +++ b/Bugzilla/Attachment/PatchReader.pm @@ -222,6 +222,9 @@ sub setup_patch_readers { && Bugzilla->params->{'cvsroot_get'}) { 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( new PatchReader::AddCVSContext($context, Bugzilla->params->{'cvsroot_get'})); $last_reader = $last_reader->sends_data_to;