We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f462ac commit 646891fCopy full SHA for 646891f
1 file changed
lib/ticgit/base.rb
@@ -269,7 +269,7 @@ def tic_states
269
270
def sync_tickets
271
#Dir.chdir "../tidyapp_bugs"
272
- #bs = git.lib.branches_all.map{|b| b.first }
+ bs = git.lib.branches_all.map{|b| b.first }
273
274
#unless bs.include?('ticgit') && File.directory?(@tic_working)
275
# init_ticgit_branch(bs.include?('ticgit'))
@@ -282,11 +282,11 @@ def sync_tickets
282
#puts git.branch('master').checkout()
283
#end
284
285
- in_branch('ticgit') do
+ in_branch(bs.include?('ticgit')) do
286
#puts git.add('.')
287
#puts git.commit('tickets update')
288
puts git.pull('origin','origin/ticgit')
289
- puts git.push('origin','')
+ puts git.push('origin','ticgit')
290
puts
291
puts "Tickets synchronized."
292
end
0 commit comments