X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-commit-date.py;h=7f481f36960251b382b9d0b756fed9563e521619;hb=13b95111ceb542d9617c4f1a7f44dfde691ed226;hp=71594ae3899e896a2d50901d7bf873178b7fdf0c;hpb=3d9718102201b0be6ab314ca7a336d8791aba6b2;p=git-scripts.git diff --git a/set-commit-date.py b/set-commit-date.py index 71594ae..7f481f3 100755 --- a/set-commit-date.py +++ b/set-commit-date.py @@ -8,6 +8,10 @@ import os import subprocess +git_root = subprocess.check_output(['git', 'rev-parse', '--show-toplevel'], + universal_newlines=True).rstrip('\n') +os.chdir(git_root) + separator = '----- GIT LOG SEPARATOR -----' git_log = subprocess.Popen(['git', 'log', '-m', '--first-parent',