projects
/
iron-blogger
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c160a
)
only commit to git if the update is not the dry run
author
Benjamin Mako Hill
<mako@atdot.cc>
Mon, 14 Nov 2011 21:20:01 +0000
(16:20 -0500)
committer
Benjamin Mako Hill
<mako@atdot.cc>
Mon, 14 Nov 2011 21:20:01 +0000
(16:20 -0500)
weekly-update.py
patch
|
blob
|
history
diff --git
a/weekly-update.py
b/weekly-update.py
index ad6ef1a43095fce7926a0ef25d8562020cd9d90c..acfc17bb8c0d67a760467e6e197e1cf4f28e9ed1 100755
(executable)
--- a/
weekly-update.py
+++ b/
weekly-update.py
@@
-25,8
+25,9
@@
with open('ledger', 'a') as f:
f.write("\n")
f.write(render.render_template('templates/ledger', date))
-subprocess.check_call(["git", "commit", "ledger",
- "-m", "Update for %s" % (date,)])
+if not dry_run:
+ subprocess.check_call(["git", "commit", "ledger",
+ "-m", "Update for %s" % (date,)])
debts = render.get_debts()
punt = []
Benjamin Mako Hill
||
Want to submit a patch?