Skip to content

Commit

Permalink
Merge pull request #158 from fosslight/download
Browse files Browse the repository at this point in the history
Set the default link value when downloading
  • Loading branch information
soimkim authored Apr 26, 2024
2 parents 77d30ca + 0126214 commit c0e2bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fosslight_util/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def change_src_link_to_https(src_link):


def parse_src_link(src_link):
src_info = {}
src_info = {"url": src_link}
src_link_changed = ""
if src_link.startswith("git://") or src_link.startswith("https://") or src_link.startswith("http://"):
src_link_split = src_link.split(';')
Expand All @@ -79,7 +79,7 @@ def parse_src_link(src_link):
src_info["url"] = src_link_changed
src_info["branch"] = branch_info
src_info["tag"] = tag_info
return src_info
return src_info


def main():
Expand Down

0 comments on commit c0e2bef

Please sign in to comment.