Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Using shell on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Werner committed Apr 12, 2012
1 parent c5fa78f commit f89e7e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jasy/core/Repository.py
Expand Up @@ -36,7 +36,8 @@ def getDistFolder(repo, rev):
def executeCommand(args, msg): def executeCommand(args, msg):
"""Executes the given process and outputs message when errors happen.""" """Executes the given process and outputs message when errors happen."""


returnValue = subprocess.call(args, stdout=__nullDevice, shell=False) # Using shell on Windows to resolve binaries like "git"
returnValue = subprocess.call(args, stdout=__nullDevice, shell=sys.platform == "win32")
if returnValue != 0: if returnValue != 0:
logging.error("Error during executing shell command!") logging.error("Error during executing shell command!")
logging.error(msg) logging.error(msg)
Expand Down

0 comments on commit f89e7e7

Please sign in to comment.