lib/tasks/push.rb in dev-2.0.289 vs lib/tasks/push.rb in dev-2.0.290
- old
+ new
@@ -1,11 +1,13 @@
desc 'performs a git push'
task :push do Tasks.execute_task :push;end
class Push < Array
def update
- if(File.exists?('.git') && `git config --list`.include?('user.name=') && `git branch`.include?('* master') )
- add_quiet 'git push'
- add_quiet 'git push --tags'
+ if(File.exists?('.git') && `git config --list`.include?('user.name='))
+ if(`git branch`.include?('* master') || `git branch`.include?('* develop'))
+ add_quiet 'git push'
+ add_quiet 'git push --tags'
+ end
end
end
end
\ No newline at end of file