X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-commit-date.py;h=dc6a5fb732d93a0499323e9197305797a24172d8;hb=b2874dacef09ea00990fac43db70a57019c7bf41;hp=c5d49d4225e7864bfdc7710e83179da805d0289b;hpb=889d6017bcc7c94e667bb4ef2ffbc003131dabf5;p=git-scripts.git diff --git a/set-commit-date.py b/set-commit-date.py index c5d49d4..dc6a5fb 100755 --- a/set-commit-date.py +++ b/set-commit-date.py @@ -13,7 +13,8 @@ separator = '----- GIT LOG SEPARATOR -----' git_log = subprocess.Popen(['git', 'log', '-m', '--first-parent', '--name-only', '--no-color', '--format=%s%%n%%ct' % separator], - stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + stdout=subprocess.PIPE, stderr=subprocess.STDOUT, + universal_newlines=True) filenames = set() # stages: 1 - start of commit, 2 - timestamp, 3 - empty line, 4 - files stage = 1