diff options
author | B. Watson <urchlay@slackware.uk> | 2024-08-06 03:18:52 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-08-06 03:18:52 -0400 |
commit | 1316621b479900c971225560de52c7c829bc8d19 (patch) | |
tree | c9e18b014baac8511e1e3ec4f57e4b1ffa5237f9 | |
parent | 65e04bb1c01066a1b8986399c14d3a398c786ab7 (diff) | |
download | sbo-maintainer-tools-1316621b479900c971225560de52c7c829bc8d19.tar.gz |
sbolint: *really* stop complaining about refs/tags in github URLs.
-rwxr-xr-x | sbolint | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1232,7 +1232,6 @@ sub curl_head_request { sub check_github_url { my $file = shift; my $url = shift; - my $old_url = $url; my $new_url; my $ext; my $tag; @@ -1242,6 +1241,7 @@ sub check_github_url { # do not police releases/ or raw/ URLs, only archive/ return unless $url =~ m{github\.com/[^/]*/[^/]*/archive/}; + # allow *and ignore* refs/tags $url =~ s,refs/tags/,,; #https: // site/ .../ .../ archive/ ...everything else. @@ -1294,7 +1294,7 @@ sub check_github_url { $new_url = "https://github.com/$user/$proj/archive/$dir/$proj-$ver$ext"; - if($old_url ne $new_url) { + if($url ne $new_url) { log_warning("$file: canonical github URL should be: $new_url"); } } |