Browse files

Clear up the current task ID cache when completing a task

  • Loading branch information...
1 parent f352e49 commit 314e42df5db2d0d504375c3dc98bc1878e933c5c Christophe Porteneuve committed Sep 6, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 git_basecamp_time_logger.rb
View
1 git_basecamp_time_logger.rb
@@ -130,6 +130,7 @@ def complete_task!
result = request(:put, "todo_items/#{@current_task_id}/complete")
if result.is_a?(Net::HTTPOK)
log :confirm, 'Task marked as completed!'
+ %x(git config --unset-all #{GIT_LOCAL_CONFIG_CURRENT_TASK_ID_KEY})
else
errors = result.body.scan(%r(<error>(.*?)</error>)).flatten
if errors.empty?

0 comments on commit 314e42d

Please sign in to comment.