checkout: specify checkout directory if URL ends with /trunk
This commit is contained in:
parent
8a795ce265
commit
f1ed0cb50f
@ -8,6 +8,10 @@ module Svi
|
||||
class << self
|
||||
|
||||
def checkout(url)
|
||||
checkout_directory = []
|
||||
if url =~ %r{/([^/]+)/trunk$}
|
||||
checkout_directory << $1
|
||||
end
|
||||
last_checkout_message = ""
|
||||
checked_out_paths = []
|
||||
clear_message = lambda do
|
||||
@ -23,7 +27,7 @@ module Svi
|
||||
last_checkout_message = ""
|
||||
end
|
||||
end
|
||||
SvnRunner.run_svn("checkout", [url], allow_interactive: true) do |line|
|
||||
SvnRunner.run_svn("checkout", [url] + checkout_directory, allow_interactive: true) do |line|
|
||||
if line =~ /^A.{4}(.*)$/
|
||||
path = $1
|
||||
checked_out_paths << path
|
||||
|
Loading…
x
Reference in New Issue
Block a user