Permalink
Browse files

changed ti sync

  • Loading branch information...
bmfs committed Mar 13, 2010
1 parent 5f462ac commit 646891f815fc723b9609c1d5ece139573e8734f3
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ticgit/base.rb
View
@@ -269,7 +269,7 @@ def tic_states
def sync_tickets
#Dir.chdir "../tidyapp_bugs"
- #bs = git.lib.branches_all.map{|b| b.first }
+ bs = git.lib.branches_all.map{|b| b.first }
#unless bs.include?('ticgit') && File.directory?(@tic_working)
# init_ticgit_branch(bs.include?('ticgit'))
@@ -282,11 +282,11 @@ def sync_tickets
#puts git.branch('master').checkout()
#end
- in_branch('ticgit') do
+ in_branch(bs.include?('ticgit')) do
#puts git.add('.')
#puts git.commit('tickets update')
puts git.pull('origin','origin/ticgit')
- puts git.push('origin','')
+ puts git.push('origin','ticgit')
puts
puts "Tickets synchronized."
end

0 comments on commit 646891f

Please sign in to comment.