Skip to content

Commit

Permalink
support gitea@ SSH addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Aug 13, 2023
1 parent ef3e544 commit 4fccab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ when %r[://] # URL
url = URI.parse(term)
path = CODE_ROOT.join(url.host.downcase, url.path[1..-1])
abort "Missing url scheme" unless url.scheme
when %r[\Agit@([^:]+):(.*)] # git url
when %r[\Agit(?:ea)?@([^:]+):(.*)] # git url
url = term
path = CODE_ROOT.join($1, $2)
when %r[\A[\w\.\-]+\z] # just search for repo
Expand Down

0 comments on commit 4fccab8

Please sign in to comment.