# File lib/r10k/git/rugged/bare_repository.rb, line 64 def wipe_branches backup_branches = {} with_repo do |repo| repo.branches.each do |branch| if !branch.head? backup_branches[branch.name] = branch.target_id repo.branches.delete(branch) end end end backup_branches end