Skip to content

Commit

Permalink
Remove a repeated check for platform
Browse files Browse the repository at this point in the history
  • Loading branch information
kemayo committed Jan 21, 2016
1 parent a8de19b commit e52895d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
import sublime
import sublime_plugin
import sys
import threading
import subprocess
import functools
Expand Down Expand Up @@ -188,13 +189,13 @@ def run(self):
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW

env = os.environ.copy()

shell = False
if sublime.platform() == 'windows':
shell = True

env = os.environ.copy()
if sublime.platform() == 'windows' and 'HOME' not in env:
env['HOME'] = env['USERPROFILE']
if 'HOME' not in env:
env['HOME'] = env['USERPROFILE']

# universal_newlines seems to break `log` in python3
proc = subprocess.Popen(self.command,
Expand Down

0 comments on commit e52895d

Please sign in to comment.