lib/rfix/branches/name.rb in rfix-1.2.5 vs lib/rfix/branches/name.rb in rfix-1.2.6.pre.198

- old
+ new

@@ -8,15 +8,15 @@ @name = name end def resolve(with:) unless branch = with.branches[name] - raise Branch::UnknownBranchError.new("Could not find branch {{error:#{name}}}") + raise Branch::UnknownBranchError, "Could not find branch {{error:#{name}}}" end with.lookup(with.merge_base(branch.target_id, with.head.target_id)) rescue Rugged::ReferenceError - raise Branch::UnknownBranchError.new("Could not find branch {{error:#{name}}}") + raise Branch::UnknownBranchError, "Could not find branch {{error:#{name}}}" end alias to_s name end end