X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-commit-date.py;h=7f481f36960251b382b9d0b756fed9563e521619;hb=c7ddefc8d0dd0eda9ad0d18b4d7acaa19a9d7be2;hp=71594ae3899e896a2d50901d7bf873178b7fdf0c;hpb=3929127d65ddc5d676862e9a514c26b655221900;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',