Modified the call to git log in the changes module to conform with Windows.

The call to git log included "'" characters to "stringify" input to the
git command. On unix systems, this functions the same way as the
citation (") character. On Windows however, it does not.
This commit is contained in:
Adam Waldenberg 2013-04-18 17:05:35 +02:00
parent dbcf709232
commit cd3de23da2

View file

@ -91,7 +91,7 @@ class AuthorInfo:
class Changes:
def __init__(self, hard):
self.commits = []
git_log_r = subprocess.Popen("git log --pretty='%ad|%t|%aN|%s' --stat=100000,8192 --no-merges -w " +
git_log_r = subprocess.Popen("git log --pretty=\"%ad|%t|%aN|%s\" --stat=100000,8192 --no-merges -w " +
"{0} --date=short".format("-C -C -M" if hard else ""),
shell=True, bufsize=1, stdout=subprocess.PIPE).stdout
commit = None