X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/1c8a87b02aae31b111907415779d7df230357a24..a87dc0bbbfa3d5e480ef21a46b1b93a44de28b3f:/weekly-update.py?ds=inline diff --git a/weekly-update.py b/weekly-update.py index acfc17b..06d8518 100755 --- a/weekly-update.py +++ b/weekly-update.py @@ -83,3 +83,7 @@ if punt: subprocess.check_call(["git", "commit", "ledger", "bloggers.yml", "-m", "Punts for %s" % (today,)]) + +# if it's a dry run, lets set the ledger back to the beginning state +if dry_run: + subprocess.check_call(["git", "checkout", "ledger"])