From: Benjamin Mako Hill Date: Mon, 14 Nov 2011 21:30:51 +0000 (-0500) Subject: reset the ledger after the dry run to the latest git version X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/a9d51198eb1aaa16a90535afac15592c39992d92 reset the ledger after the dry run to the latest git version --- 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"])