From a9d51198eb1aaa16a90535afac15592c39992d92 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Mon, 14 Nov 2011 16:30:51 -0500 Subject: [PATCH] reset the ledger after the dry run to the latest git version --- weekly-update.py | 4 ++++ 1 file changed, 4 insertions(+) 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"]) -- 2.39.5