Skip to content

Commit 646891f

Browse files
committed
changed ti sync
1 parent 5f462ac commit 646891f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/ticgit/base.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def tic_states
269269

270270
def sync_tickets
271271
#Dir.chdir "../tidyapp_bugs"
272-
#bs = git.lib.branches_all.map{|b| b.first }
272+
bs = git.lib.branches_all.map{|b| b.first }
273273

274274
#unless bs.include?('ticgit') && File.directory?(@tic_working)
275275
# init_ticgit_branch(bs.include?('ticgit'))
@@ -282,11 +282,11 @@ def sync_tickets
282282
#puts git.branch('master').checkout()
283283
#end
284284

285-
in_branch('ticgit') do
285+
in_branch(bs.include?('ticgit')) do
286286
#puts git.add('.')
287287
#puts git.commit('tickets update')
288288
puts git.pull('origin','origin/ticgit')
289-
puts git.push('origin','')
289+
puts git.push('origin','ticgit')
290290
puts
291291
puts "Tickets synchronized."
292292
end

0 commit comments

Comments
 (0)