X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/a9d51198eb1aaa16a90535afac15592c39992d92..701a75a0d6472d6f97849709feb57ffa997b3a40:/weekly-update.py?ds=inline diff --git a/weekly-update.py b/weekly-update.py index 06d8518..284ffb6 100755 --- a/weekly-update.py +++ b/weekly-update.py @@ -81,9 +81,13 @@ if punt: with open('bloggers.yml','w') as b: yaml.safe_dump(bloggers, b) - subprocess.check_call(["git", "commit", "ledger", "bloggers.yml", - "-m", "Punts for %s" % (today,)]) + if not dry_run: + 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"]) + + if punt: + subprocess.check_call(["git", "checkout", "bloggers.yml"])