Skip to content

Commit

Permalink
Merge pull request #372 from vdayanand/v/fixgitsplit
Browse files Browse the repository at this point in the history
fix: incorrect repo name value when url ends with .git
  • Loading branch information
vdayanand authored Apr 18, 2022
2 parents 584421b + 8c58c49 commit aca0469
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webui/gitutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ end

# Split a repo path into its owner and name.
function splitrepo(url::AbstractString)
url = replace(url, r"(.*).git$" => s"\1")
pieces = split(HTTP.URI(url).path, "/"; keepempty=false)
owner = join(pieces[1:end-1], "/")
name = pieces[end]
Expand Down

0 comments on commit aca0469

Please sign in to comment.