Skip to content

Commit

Permalink
Tweak inferred remote name
Browse files Browse the repository at this point in the history
  • Loading branch information
norbert committed Jul 21, 2008
1 parent da3eac4 commit 168bf6d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/braid/mirror.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@ def self.new_from_options(url, options = {})
path = "vendor/plugins/#{path}"
end

remote = "braid/#{type}/#{path}".gsub("_", '-') # stupid git svn changes all _ to ., weird
remote = "braid/#{path}".gsub("_", '-') # stupid git svn changes all _ to ., weird
squashed = !options["full"]

unless type == "svn"
remote << "/#{branch}"
else
branch = nil
end
branch = nil if type == "svn"

attributes = { "url" => url, "remote" => remote, "type" => type, "branch" => branch, "squashed" => squashed }
self.new(path, attributes)
Expand Down

0 comments on commit 168bf6d

Please sign in to comment.