a6e3b655b6597f0c2ba9580fb4dd1c2ea42fc1c4

Author: Robin Luckey

Date: 2009-11-05 09:53:25 -0800

[FIX] restict_url_to_trunk fails if already trunk

diff --git a/lib/scm/adapters/svn/misc.rb b/lib/scm/adapters/svn/misc.rb index 702fbe9..cd296c3 100644 --- a/lib/scm/adapters/svn/misc.rb +++ b/lib/scm/adapters/svn/misc.rb @@ -28,6 +28,8 @@ module Scm::Adapters # The url and branch_name of this object will be updated with the selected location. # The url will be unmodified if there is a problem connecting to the server. def restrict_url_to_trunk + return self.url if self.url =~ /\/trunk\/?$/ + list = ls return self.url unless list