summaryrefslogtreecommitdiff
path: root/jt
diff options
context:
space:
mode:
Diffstat (limited to 'jt')
-rwxr-xr-xjt3
1 files changed, 3 insertions, 0 deletions
diff --git a/jt b/jt
index 9fbe49d..34fdfd9 100755
--- a/jt
+++ b/jt
@@ -265,6 +265,9 @@ class NewTopicCommand(Command):
pathname = self._topic_pathname(args[0])
self._create_topic_page(pathname, args[1])
+ commit_to_git(self._app.settings['source'], [pathname])
+ if self._app.settings['push']:
+ push_git(self._app.settings['source'])
def _topic_pathname(self, page_path):
return os.path.join(self._app.settings['source'], page_path + '.mdwn')