diff options
author | lpsolit%gmail.com <> | 2006-12-30 10:58:28 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-12-30 10:58:28 +0100 |
commit | 80617c837c0e843d455cc5dfe6d3925937bea7f6 (patch) | |
tree | 59943120dd17e82abc6434f52279250f1e6bf3cd | |
parent | 10682bcf15f802db6da5d39e8cc9e9f15be89a27 (diff) | |
download | bugzilla-80617c837c0e843d455cc5dfe6d3925937bea7f6.tar.gz bugzilla-80617c837c0e843d455cc5dfe6d3925937bea7f6.tar.xz |
Bug 365241: Changing the context of a patch fails - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
-rw-r--r-- | Bugzilla/Attachment/PatchReader.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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; |