]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365241: Changing the context of a patch fails - Patch by Frédéric Buclin <LpSol...
authorlpsolit%gmail.com <>
Sat, 30 Dec 2006 09:58:28 +0000 (09:58 +0000)
committerlpsolit%gmail.com <>
Sat, 30 Dec 2006 09:58:28 +0000 (09:58 +0000)
Bugzilla/Attachment/PatchReader.pm

index 00623dcf2f496ebc72f0b03e715b26cf6e07ce83..5dbffb5c9dd9f82c65c4f0d47b4aa1e14effbc3a 100644 (file)
@@ -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;