diff --git a/ros2nix/ros2nix.py b/ros2nix/ros2nix.py index a7b7053..3aa35df 100755 --- a/ros2nix/ros2nix.py +++ b/ros2nix/ros2nix.py @@ -286,7 +286,7 @@ def ros2nix(args): ) git_cache[toplevel] = info - match = re.match("https://github.com/(?P[^/]*)/(?P.*?)(.git)?$", url) + match = re.match("https://github.com/(?P[^/]*)/(?P.*?)(.git|/.*)?$", url) if match is not None: kwargs["src_param"] = "fetchFromGitHub" kwargs["src_expr"] = dedent(f'''