bass-o-matic: do not use pager in git log
| | |
| | | workspace_path = os.path.join(path, subdir) |
| | | |
| | | if incremental: |
| | | cmd = ['git', 'log', '--diff-filter=AMR', '--name-only', '--pretty=format:', |
| | | cmd = ['git', '--no-pager', 'log', '--diff-filter=AMR', '--name-only', '--pretty=format:', |
| | | '..'.join([begin_commit, end_commit])] |
| | | |
| | | proc = subprocess.Popen(cmd, |
| | | stdout=subprocess.PIPE, |
| | | stderr=subprocess.PIPE, |
| | | cwd=workspace_path, |
| | | universal_newlines=True |
| | | ) |
| | | |
| | | proc.wait() |
| | | stdout, stderr = proc.communicate() |
| | | if debug: |
| | | if proc.returncode != 0: |
| | | logger.debug('exit: %d, %s', proc.returncode, proc.stderr.read()) |
| | | logger.debug('exit: %d, %s', proc.returncode, stderr) |
| | | |
| | | for line in proc.stdout: |
| | | for line in stdout.splitlines(): |
| | | line = line.rstrip() |
| | | # git output might contain empty lines, so we skip them. |
| | | if not line: |
| | |
| | | universal_newlines=True |
| | | ) |
| | | |
| | | proc.wait() |
| | | stdout, stderr = proc.communicate() |
| | | if debug: |
| | | if proc.returncode != 0: |
| | | logger.debug('exit: %d, %s', proc.returncode, proc.stderr.read()) |
| | | logger.debug('exit: %d, %s', proc.returncode, stderr) |
| | | |
| | | for line in proc.stdout: |
| | | for line in stdout.splitlines(): |
| | | line = line.rstrip() |
| | | |
| | | # Only 'openindiana' category. |