From 80617c837c0e843d455cc5dfe6d3925937bea7f6 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 30 Dec 2006 09:58:28 +0000 Subject: Bug 365241: Changing the context of a patch fails - Patch by Frédéric Buclin r=mkanat a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Attachment/PatchReader.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Attachment/PatchReader.pm') diff --git a/Bugzilla/Attachment/PatchReader.pm b/Bugzilla/Attachment/PatchReader.pm index 00623dcf2..5dbffb5c9 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; -- cgit v1.2.3-24-g4f1b