Show More
@@ -623,10 +623,14 b' class gitsubrepo(abstractsubrepo):' | |||||
623 | are not supported and very probably fail. |
|
623 | are not supported and very probably fail. | |
624 | """ |
|
624 | """ | |
625 | self._ui.debug('%s: git %s\n' % (self._relpath, ' '.join(commands))) |
|
625 | self._ui.debug('%s: git %s\n' % (self._relpath, ' '.join(commands))) | |
626 | # print git's stderr, which is mostly progress and useful info |
|
626 | # unless ui.quiet is set, print git's stderr, | |
|
627 | # which is mostly progress and useful info | |||
|
628 | errpipe = None | |||
|
629 | if self._ui.quiet: | |||
|
630 | errpipe = open(os.devnull, 'w') | |||
627 | p = subprocess.Popen(['git'] + commands, bufsize=-1, cwd=cwd, env=env, |
|
631 | p = subprocess.Popen(['git'] + commands, bufsize=-1, cwd=cwd, env=env, | |
628 | close_fds=util.closefds, |
|
632 | close_fds=util.closefds, | |
629 | stdout=subprocess.PIPE) |
|
633 | stdout=subprocess.PIPE, stderr=errpipe) | |
630 | if stream: |
|
634 | if stream: | |
631 | return p.stdout, None |
|
635 | return p.stdout, None | |
632 |
|
636 |
General Comments 0
You need to be logged in to leave comments.
Login now