Skip to content

Commit 09d419f

Browse files
author
Peter Degen-Portnoy
committed
Update comment to reflect behavior of normalize_url method
1 parent f32ef97 commit 09d419f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/scm/adapters/git/validation.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ def normalize
1515
self
1616
end
1717

18-
# Given a Github read-write URL, return a read-only URL.
19-
# Otherwise, return the original URL.
18+
# Given a Github read-write URL, return a git protocol read-only URL
19+
# Given a Github web URL, return a git protocol read-only URL
20+
# Given a Git read-write protocol URL, return a git protocol read-only URL
21+
# Else, return the URL
2022
def normalize_url
2123
case @url
2224
when /^https?:\/\/\w+@github.com\/(.+)\.git$/

0 commit comments

Comments
 (0)