mirror of
https://github.com/wentasah/ros2nix.git
synced 2025-06-09 15:52:23 +03:00
Strip trailing / from GitHub repo name
This commit is contained in:
parent
6ba6c8a2c2
commit
bff08f3718
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ def ros2nix(args):
|
|||
)
|
||||
git_cache[toplevel] = info
|
||||
|
||||
match = re.match("https://github.com/(?P<owner>[^/]*)/(?P<repo>.*?)(.git)?$", url)
|
||||
match = re.match("https://github.com/(?P<owner>[^/]*)/(?P<repo>.*?)(.git|/.*)?$", url)
|
||||
if match is not None:
|
||||
kwargs["src_param"] = "fetchFromGitHub"
|
||||
kwargs["src_expr"] = dedent(f'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue