reset the ledger after the dry run to the latest git version
authorBenjamin Mako Hill <mako@atdot.cc>
Mon, 14 Nov 2011 21:30:51 +0000 (16:30 -0500)
committerBenjamin Mako Hill <mako@atdot.cc>
Mon, 14 Nov 2011 21:30:51 +0000 (16:30 -0500)
weekly-update.py

index acfc17bb8c0d67a760467e6e197e1cf4f28e9ed1..06d85182d84c5cbf127967e0f76837fa970baf62 100755 (executable)
@@ -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"])

Benjamin Mako Hill || Want to submit a patch?