lib/dev_tasks.rb in dev_tasks-0.0.15 vs lib/dev_tasks.rb in dev_tasks-0.0.16
- old
+ new
@@ -20,10 +20,10 @@
self[:name]=Rake.application.original_dir.split('/').last
self[:scm]=DevTasks.scm
if(self[:scm]=='git')
branches=`git branch`.split(/\n/)
branches.each{|b|
- self[:branch]=b.gsub('*','').strip
+ self[:branch]=b.gsub('*','').strip if b.include?('*')
}
end
self[:dev_root]=DevTasks.dev_root
update
end