[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#756940: lintian: Recommend cgit based Vcs-Browser URL instead of gitweb



Source: lintian
Severity: wishlist
Tags: patch

Hi

In meanwhile URLs like http://git.debian.org/?p=foo/bar.git
get directed to http://anonscm.debian.org/cgit/foo/bar.git on
alioth hosted repository.

I propose this to update the Vcs-Browser recommended URL to cgit web
frontend based URLs and also proposing the http -> https switch.

Attached is proposed patch.

Could you consider applying it to the next lintian release?

Regards,
Salvatore
>From 381aaa5fc9f735e19590eb1ce389940367d5aa1f Mon Sep 17 00:00:00 2001
From: Salvatore Bonaccorso <carnil@debian.org>
Date: Sun, 3 Aug 2014 20:44:03 +0200
Subject: [PATCH] Recommend cgit based Vcs-Browser URL instead of gitweb

---
 checks/fields.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/fields.pm b/checks/fields.pm
index 904ab96..67beb86 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -130,7 +130,7 @@ my %VCS_CANONIFY = (
         $_[0] =~ s{https?://svn\.debian\.org/wsvn/}
                   {http://anonscm.debian.org/viewvc/};
         $_[0] =~ s{\Qhttp://git.debian.org/?p=\E}
-                  {http://anonscm.debian.org/gitweb/?p=};
+                  {https://anonscm.debian.org/cgit/};
         $_[0] =~ s{\Qhttp://bzr.debian.org/loggerhead/\E}
                   {http://anonscm.debian.org/loggerhead/};
         if ($_[0] =~ m{\Qhttp://anonscm.debian.org/viewvc/\E}xsm) {
-- 
2.0.1


Reply to: