diff --git a/packages/wakatime/projects/git.py b/packages/wakatime/projects/git.py index 00cf1f4..8639637 100644 --- a/packages/wakatime/projects/git.py +++ b/packages/wakatime/projects/git.py @@ -58,8 +58,9 @@ class Git(BaseProject): stdout = None try: stdout, stderr = Popen([ - 'git', 'branch', '--no-color', '--list' - ], stdout=PIPE, cwd=self._project_base()).communicate() + 'git', 'branch', '--no-color', '--list' + ], stdout=PIPE, stderr=PIPE, cwd=self._project_base() + ).communicate() except OSError: pass if stdout: diff --git a/packages/wakatime/projects/subversion.py b/packages/wakatime/projects/subversion.py index 35d834d..92d0eef 100644 --- a/packages/wakatime/projects/subversion.py +++ b/packages/wakatime/projects/subversion.py @@ -37,7 +37,7 @@ class Subversion(BaseProject): try: stdout, stderr = Popen([ 'svn', 'info', os.path.realpath(self.path) - ], stdout=PIPE).communicate() + ], stdout=PIPE, stderr=PIPE).communicate() except OSError: pass else: