lib/tasks/default.rb in dev-2.1.90 vs lib/tasks/default.rb in dev-2.1.91

- old
+ new

@@ -31,10 +31,15 @@ default_tasks=DEFAULT_TASKS if defined? DEFAULT_TASKS if(default_tasks.nil?) if(work_up_to_date) default_tasks=[] elsif(File.exists?('.git')) - default_tasks=[:setup,:build,:test,:add,:commit,:package,:publish,:clean,:push,:pull] + if(defined?(NO_AUTO_COMMIT)) + default_tasks=[:setup,:build,:test,:package,:publish,:clean] + else + puts ':add,:commit,:push,:pull tasks are part of :default, to opt-out, define NO_AUTO_COMMIT' + default_tasks=[:setup,:build,:test,:add,:commit,:package,:publish,:clean,:push,:pull] + end elsif File.exists?('.svn') default_tasks=[:setup,:build,:test,:add,:commit,:publish,:clean] else default_tasks=[:setup,:build,:test,:package,:publish] end \ No newline at end of file