Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7381

Show
Ignore:
Timestamp:
08/31/07 05:29:10 (10 months ago)
Author:
minam
Message:

Don't let a task trigger itself when used as the source for an "on" hook (closes #9356)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/capistrano/CHANGELOG

    r7379 r7381  
    11*SVN* 
     2 
     3* Don't let a task trigger itself when used as the source for an "on" hook [Jamis Buck] 
    24 
    35* Avoid using the --password switch with subversion for security purposes [sentinel] 
  • tools/capistrano/lib/capistrano/callback.rb

    r6709 r7381  
    3838      config.find_and_execute_task(source) 
    3939    end 
     40 
     41    def applies_to?(task) 
     42      super && (task.nil? || task.fully_qualified_name != source.to_s) 
     43    end 
    4044  end 
    4145end