Permalink
Browse files

Using shell on windows

  • Loading branch information...
1 parent c5fa78f commit f89e7e7b51545b0026ad26a93d1f77ea46b7bb05 Sebastian Werner committed Apr 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 jasy/core/Repository.py
View
@@ -36,7 +36,8 @@ def getDistFolder(repo, rev):
def executeCommand(args, msg):
"""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:
logging.error("Error during executing shell command!")
logging.error(msg)

0 comments on commit f89e7e7

Please sign in to comment.