X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-commit-date.py;h=c0aaa8cf999bae085a6ab0c484a7cc23edc7f5bf;hb=a9ea8ac2e7c82eb7879c3f84a54ef9ff4b312007;hp=74972e4653225207864e67fe3c603a7448e2471e;hpb=23e508d0783ab7e5179e4d424598492440102e3d;p=git-scripts.git diff --git a/set-commit-date.py b/set-commit-date.py index 74972e4..c0aaa8c 100755 --- a/set-commit-date.py +++ b/set-commit-date.py @@ -66,7 +66,7 @@ for line in git_log.stdout: deleted_files.add(filename) if filename not in deleted_files and filename not in changed_files: changed_files.add(filename) - if os.path.exists(filename): + if os.path.exists(filename) and not os.path.islink(filename): os.utime(filename, (time, time)) else: raise ValueError("stage: %d, line: %s" % (stage, line))