Skip to content

Commit ce112d2

Browse files
committed
OTWO-1489 Added a validation for SVN Repo URL if empty
1 parent 8be6be3 commit ce112d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/scm/adapters/svn/validation.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def validate_username
2626

2727
# If the URL is a simple directory path, make sure it is prefixed by file://
2828
def path_to_file_url(path)
29+
return nil if path.blank?
2930
url =~ /:\/\// ? url : 'file://' + File.expand_path(path)
3031
end
3132

0 commit comments

Comments
 (0)