]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge pull request #3 from dkasak/fix-infinite-recursion
authorTomas Babej <tomasbabej@gmail.com>
Tue, 26 May 2015 21:59:43 +0000 (23:59 +0200)
committerTomas Babej <tomasbabej@gmail.com>
Tue, 26 May 2015 21:59:43 +0000 (23:59 +0200)
Prevent hook from triggering nested task generation.

pirate_add_shift_recurrence.py

index e3c4848c26403c3537a619fd6a9c426b91607839..42d0cc08e56242fdfc95617d9d2cca2b2568bc14 100644 (file)
@@ -18,6 +18,7 @@ def is_new_local_recurrence_child_task(task):
         return True
 
 tw = TaskWarrior(data_location=os.path.dirname(os.path.dirname(sys.argv[0])))
+tw.config.update(dict(recurrence="no"))
 
 def hook_shift_recurrence(task):
     if is_new_local_recurrence_child_task(task):