~bzr/dulwich/unstable

« back to all changes in this revision

Viewing changes to dulwich/client.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-30 22:29:38 UTC
  • mfrom: (400.61.1)
  • mto: (400.67.2)
  • mto: This revision was merged to the branch mainline in revision 450.
  • Revision ID: git-v1:883b904fcd2ecf7718f4654322ea4fb776c15e97
Merge fix from Chris to hide unpacking objects from git during tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
524
524
 
525
525
    def __init__(self, *args, **kwargs):
526
526
        self._connection = None
 
527
        self._stderr = None
 
528
        self._stderr = kwargs.get('stderr')
 
529
        if 'stderr' in kwargs:
 
530
            del kwargs['stderr']
527
531
        GitClient.__init__(self, *args, **kwargs)
528
532
 
529
533
    def _connect(self, service, path):
531
535
        argv = ['git', service, path]
532
536
        p = SubprocessWrapper(
533
537
            subprocess.Popen(argv, bufsize=0, stdin=subprocess.PIPE,
534
 
                             stdout=subprocess.PIPE))
 
538
                             stdout=subprocess.PIPE,
 
539
                             stderr=self._stderr))
535
540
        return Protocol(p.read, p.write,
536
541
                        report_activity=self._report_activity), p.can_read
537
542