From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: miha@kamnitnik.top Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Oct 2021 12:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 51316@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163481849117199 (code B ref -1); Thu, 21 Oct 2021 12:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2021 12:14:51 +0000 Received: from localhost ([127.0.0.1]:56365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdWyB-0004TI-23 for submit@debbugs.gnu.org; Thu, 21 Oct 2021 08:14:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:42512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdWy9-0004TB-Ny for submit@debbugs.gnu.org; Thu, 21 Oct 2021 08:14:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdWy9-0006qC-3p for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2021 08:14:49 -0400 Received: from kamnitnik.top ([2001:19f0:5001:bf2:5400:2ff:fee0:2626]:38656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdWy4-0004jX-RZ for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2021 08:14:47 -0400 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id 3F7579C707 for ; Thu, 21 Oct 2021 12:14:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1634818480; bh=uPBtMS8mVcPNUrVo/N7ZEx3ltU59hkf9pArWxiwpSpM=; h=From:To:Subject:Date:From; b=w0coRiUNOPoQqEB679VBML1PYDUKED/mjS5wvC4Hiecy1h+BFWS2z1VSOA4ce31Dv gcNgUi1TApuxfS+jG0y96XDf7Q8bYGMejzNeKXQINekEOcVFqcrEAko73dGZiQ7LcJ pcZba98I16ig83AtpoDcuV5Vs7W+wTsbvovtEKShgvDk6OyKR2sieuGiNfKw/F1LH/ eoYAjUqKfJjxXEETfRyk7Vs0XWp8iw9nk9lHHWDhkEHmy3VZylzrdX1WNuaKkd5AM2 UNNTJJE3VZAxsyFb7dCdmGXFaycYEgs+E0Tw17JU4m0LPjPKEhmLKZfmtNOO9MeDH5 YifGcwaJSB1ug== From: miha@kamnitnik.top Date: Thu, 21 Oct 2021 14:18:32 +0200 Message-ID: <87ilxqbmg7.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2001:19f0:5001:bf2:5400:2ff:fee0:2626; envelope-from=miha@kamnitnik.top; helo=kamnitnik.top X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, FROM_SUSPICIOUS_NTLD_FP=1.997, PDS_OTHER_BAD_TLD=0.438, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: If function 'bug-reference--build-forge-setup-entry': > `(, (concat "[/@]" host-domain "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git") This should be "(regexp-quote host-domain)". Also, it would be nice if the final "\\.git" wasn't mandatory. I often git clone a website url as displayed in a web browser ("https://gitlab.com/rstocker/emacs-bluetooth" for example) without appendi [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=miha%40kamnitnik.top; ip=209.51.188.17; r=debbugs.gnu.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] 0.5 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) --=-=-= Content-Type: text/plain If function 'bug-reference--build-forge-setup-entry': > `(,(concat "[/@]" host-domain "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git") This should be "(regexp-quote host-domain)". Also, it would be nice if the final "\\.git" wasn't mandatory. I often git clone a website url as displayed in a web browser ("https://gitlab.com/rstocker/emacs-bluetooth" for example) without appending ".git". Git has no problem fetching from such an url (tested with github, gitlab and gitea), but bug-reference autosetup machinery fails to detect it as a valid url. Unfortunately, we can't simply change the final .git into "\\(?:\\.git\\)?" because regexp greediness would then swallow it into the first match group. Instead, something like this could work (concat "[/@]" (regexp-quote host-domain) "\\(?:" "\\(?1:[.A-Za-z0-9_/-]+\\)\\.git\\|" "\\(?1:[.A-Za-z0-9_/-]+\\)" "\\)") Thanks and best regards. In GNU Emacs 29.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmFxWpgTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP0JuEACbp70Revn2tv8J+BjDtBXwP95aYhYK Wy0Mt9bxD3sbP+TCZXBfdLk89zqVVE4fjfxkpMb3J16yIxDpvK6iPrhiUI0hLUkh K+cLGCmMKAe7YLakxN3yQIqsn9EV7BI9t9lLADa8ltpQUs27yP6aoQz8IrBCsByD yyggtdMU05rzJJaSlOFYLdGVH7SRTKng2oHALipGXOCScK5Qfb2EurphpR5lzh+G /v8mRvBNusm3IZKd+MET9iCu6AjWtz+AzZkP9WvSNvzToXT1y1gFzzXLfgygj5Jp JxrZCqOcCQyFRPDFGkJuxORKsk2ejtjwRHJO3kGuseaerf5VVGJ2yo2+H9Q6fc05 eRNSuoI3B7v6DFxDEDq0viOgbVLYrsv5UnNsF7YKPAjTNV9MdADuoqHNd/liiQmC POVM/buBqNnEPF7tIa6z7KQJkaaaYGeWgvdIX6zhbYrOd35Y2MM6gPjB0WlUD4nY frRKXMPJlGkkIZIHD5Pw9J18IGg1TsZwkfOoNLW7Q1d04rT/aHXo2U/YjZAcwPMb 5h3lFbXmor0SrWG1xQ7vfMyyRoJUVft7Lvdt68RpQqqiiGoK4TMCtYx/pvN8WizQ qJ/XiAXWHn58FUsFe8RgHeP9fIjSgjcoMLJVUHIGznBQztQPSA7a0LfRAbjXPbMB b8+7Rxq/I0/NdQ== =l+ue -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Oct 2021 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: miha@kamnitnik.top Cc: Tassilo Horn , 51316@debbugs.gnu.org Received: via spool by 51316-submit@debbugs.gnu.org id=B51316.16349148105606 (code B ref 51316); Fri, 22 Oct 2021 15:01:02 +0000 Received: (at 51316) by debbugs.gnu.org; 22 Oct 2021 15:00:10 +0000 Received: from localhost ([127.0.0.1]:33602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdw1h-0001SL-Kd for submit@debbugs.gnu.org; Fri, 22 Oct 2021 11:00:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdw1c-0001Q5-RL for 51316@debbugs.gnu.org; Fri, 22 Oct 2021 11:00:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tPban6egdJ5mfv5wT8QXA2QwIcgOsjypK3zXWRn//+Y=; b=J5wY8jCsLjlpGdOBrwaW/N9Wll K0ZUB2VbZmVA3FJTbKmvKJVPNSTvtNdBVV7BSZuTx0s7w1v4s+e3J95tP9LzL9c6iKOjhDYxkL0yd +0AXY/fn0U+p0azlRSM8brfHxfZd37OTQl8Iwyv0RHv4Cm5xWNn6pbTZpWbHYurMYHLQ=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdw1S-000609-LE; Fri, 22 Oct 2021 16:59:57 +0200 From: Lars Ingebrigtsen References: <87ilxqbmg7.fsf@miha-pc> X-Now-Playing: Helen Money's _Atomic_: "Redshift" Date: Fri, 22 Oct 2021 16:59:54 +0200 In-Reply-To: <87ilxqbmg7.fsf@miha-pc> (miha@kamnitnik.top's message of "Thu, 21 Oct 2021 14:18:32 +0200") Message-ID: <87sfwtcdg5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: miha@kamnitnik.top writes: > If function 'bug-reference--build-forge-setup-entry': > >> `(,(concat "[/@]" host-domain "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git") > This should be "(regexp-quote host-domain)". Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) miha@kamnitnik.top writes: > If function 'bug-reference--build-forge-setup-entry': > >> `(,(concat "[/@]" host-domain "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git") > This should be "(regexp-quote host-domain)". This is now fixed in Emacs 28. > Also, it would be nice if the final "\\.git" wasn't mandatory. I often > git clone a website url as displayed in a web browser > ("https://gitlab.com/rstocker/emacs-bluetooth" for example) without > appending ".git". Git has no problem fetching from such an url (tested > with github, gitlab and gitea), but bug-reference autosetup machinery > fails to detect it as a valid url. > > Unfortunately, we can't simply change the final .git into > "\\(?:\\.git\\)?" because regexp greediness would then swallow it into > the first match group. This would work, though: "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git\\)?\\'" But requires that the string doesn't have anything after the .git, whereas it's currently more sloppy. I'm not sure whether that's by intent or not. (So I'm adding Tassilo to the CCs.) This is a feature request, in any case, so it should go to Emacs 29, I think. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 22 11:00:14 2021 Received: (at control) by debbugs.gnu.org; 22 Oct 2021 15:00:14 +0000 Received: from localhost ([127.0.0.1]:33606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdw1m-0001Sk-3L for submit@debbugs.gnu.org; Fri, 22 Oct 2021 11:00:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdw1l-0001SF-8Z for control@debbugs.gnu.org; Fri, 22 Oct 2021 11:00:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TGAhPGHT2P1tPV5zP9RQe9/U7qeOeDOeRuWHpch3MRA=; b=t8BV67K7iNWG6ZpIlt49XnblTt z2yReAdbFwup90gVtWDmvBhMIBv5TyE0BYCO14RPHLh8JtxPuKjGHZpyqb/TvscVUre0RcfDBp1NF KT0G/ISgcziVh8CiLHB5ESfiGBQ6D/XvWaCGeSCXEYyVwCpRfdWSAMv2Oj7fcodJmzUw=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdw1d-00060j-1I for control@debbugs.gnu.org; Fri, 22 Oct 2021 17:00:07 +0200 Date: Fri, 22 Oct 2021 17:00:04 +0200 Message-Id: <87r1cdcdfv.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51316 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 51316 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 51316 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 22 12:29:40 2021 Received: (at control) by debbugs.gnu.org; 22 Oct 2021 16:29:41 +0000 Received: from localhost ([127.0.0.1]:33679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdxQK-0006GN-Np for submit@debbugs.gnu.org; Fri, 22 Oct 2021 12:29:40 -0400 Received: from mail-pg1-f178.google.com ([209.85.215.178]:34595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdxQJ-0006Fx-Ro for control@debbugs.gnu.org; Fri, 22 Oct 2021 12:29:40 -0400 Received: by mail-pg1-f178.google.com with SMTP id h193so3801414pgc.1 for ; Fri, 22 Oct 2021 09:29:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=2HhdjZ0qb5FDoH4a080C3OH7jIYlh/u42XgVaDXT0qk=; b=TUO7mqYb7KBv44u6qOTIAXACMqZR5O+YPtjYwDpiWOSY8Vw8B2AfZTSj0P5V7F/ALu r5l6H/f0PEC5qC1l9cwCcC3VH3Ol8VwYouftxacwco/cbFXtZ1/93xhUV4NK3Eore+Wk 3+neeWud+te0JQY/F6KahSZ9yL79nj5RZHyiWITkWZkNPOt1kgTbJw2gqK6v7PwAd5z+ 37Yi3jekU5aF7s4Wa2340+Tou5u3Xvj2moWm1wE3gJilZu/0GUWsXUClQ30Kuvh2wv0i E3mwY3YO6kW4o0Jk9j/jJuhJpOJzuwHM9T3YKl7FoXl6HdyBjmISeewdsOWXFxaPgT5F 7swQ== X-Gm-Message-State: AOAM532aw/kwFB4ok7p17jfdkFFelQkISifoc6+FHLFtzg31bK493n1L G8pMeIaC/JYpkdDPK0XLLBpJRp5+meI/UPWbxSjbjgl2 X-Google-Smtp-Source: ABdhPJxRBWGZ5uePghtEmt0du146VpMUwxwIJSTeE4yuIFVRlhcy+NuQW7KaVb9IQW5zRqwsaJ6AltKle5+71OFd5pA= X-Received: by 2002:aa7:978b:0:b0:44c:abf1:a8b8 with SMTP id o11-20020aa7978b000000b0044cabf1a8b8mr1031868pfp.35.1634920174170; Fri, 22 Oct 2021 09:29:34 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Oct 2021 12:29:33 -0400 From: Stefan Kangas MIME-Version: 1.0 Date: Fri, 22 Oct 2021 12:29:33 -0400 Message-ID: Subject: control message for bug #51316 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) severity 51316 wishlist quit From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Oct 2021 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Lars Ingebrigtsen Cc: miha@kamnitnik.top, 51316@debbugs.gnu.org Received: via spool by 51316-submit@debbugs.gnu.org id=B51316.163493709828800 (code B ref 51316); Fri, 22 Oct 2021 21:12:02 +0000 Received: (at 51316) by debbugs.gnu.org; 22 Oct 2021 21:11:38 +0000 Received: from localhost ([127.0.0.1]:33865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me1pC-0007US-HQ for submit@debbugs.gnu.org; Fri, 22 Oct 2021 17:11:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me1p7-0007UB-Dp for 51316@debbugs.gnu.org; Fri, 22 Oct 2021 17:11:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35508) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1me1p1-0000FU-GL; Fri, 22 Oct 2021 17:11:27 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:42947) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me1p1-0008LL-Df; Fri, 22 Oct 2021 17:11:27 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 24BD227C0054; Fri, 22 Oct 2021 17:11:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 22 Oct 2021 17:11:27 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvkedgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe fhfeejheefleeflefgjeekieehkefhuedtieelleeuueettdduffevgedufeetffenucff ohhmrghinhepghhithhlrggsrdgtohhmpdhfohhrghgvrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhp rghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsug hhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Oct 2021 17:11:25 -0400 (EDT) References: <87ilxqbmg7.fsf@miha-pc> <87sfwtcdg5.fsf@gnus.org> User-agent: mu4e 1.7.3; emacs 29.0.50 From: Tassilo Horn Date: Fri, 22 Oct 2021 22:45:23 +0200 In-reply-to: <87sfwtcdg5.fsf@gnus.org> Message-ID: <87wnm49345.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: >> If function 'bug-reference--build-forge-setup-entry': >> >>> `(,(concat "[/@]" host-domain "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git") >> This should be "(regexp-quote host-domain)". > > This is now fixed in Emacs 28. Thanks. >> Also, it would be nice if the final "\\.git" wasn't mandatory. I >> often git clone a website url as displayed in a web browser >> ("https://gitlab.com/rstocker/emacs-bluetooth" for example) without >> appending ".git". Git has no problem fetching from such an url >> (tested with github, gitlab and gitea), but bug-reference autosetup >> machinery fails to detect it as a valid url. Oh, right, that seems to work just fine. I only checked the URLs you get with the "copy to clipboard" buttons the forges provide. >> Unfortunately, we can't simply change the final .git into >> "\\(?:\\.git\\)?" because regexp greediness would then swallow it >> into the first match group. > > This would work, though: > > "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git\\)?\\'" Indeed. > But requires that the string doesn't have anything after the .git, > whereas it's currently more sloppy. I'm not sure whether that's by > intent or not. (So I'm adding Tassilo to the CCs.) No, in my experience there cannot be anything after ".git". At least it's the last part of the filename and I doubt you can have query parameters like https://forge.org/user/project.git?foo=bar in a git url. > This is a feature request, in any case, so it should go to Emacs 29, I > think. I would kindly ask to reconsider. This complete bug-reference auto-setup thingy is new in emacs 28, the forge setup code is even just a month old, and using your improved regexp doesn't seem risky at all and might provide a much better user experience to possibly a lot of users, my vote would be to fix this in emacs-28. Bye, Tassilo From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Oct 2021 21:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Tassilo Horn , Lars Ingebrigtsen Cc: 51316@debbugs.gnu.org Received: via spool by 51316-submit@debbugs.gnu.org id=B51316.163493873831369 (code B ref 51316); Fri, 22 Oct 2021 21:39:01 +0000 Received: (at 51316) by debbugs.gnu.org; 22 Oct 2021 21:38:58 +0000 Received: from localhost ([127.0.0.1]:33892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me2Fa-00089p-CV for submit@debbugs.gnu.org; Fri, 22 Oct 2021 17:38:58 -0400 Received: from kamnitnik.top ([209.250.245.214]:49752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me2FX-00089f-8Q for 51316@debbugs.gnu.org; Fri, 22 Oct 2021 17:38:53 -0400 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id D77A29C706; Fri, 22 Oct 2021 21:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1634938730; bh=jW2ZF83px4CSmYfFuCwxAGXBNJKHhy3Avi53TsiGArc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=QXEAeKN0by3G0lu90PvNRB1/L3yPCLbkKhvREginWohAyZqX0zSIKAR8JmepjCRXf l7ZdtNPKg3FL7lQTW+bv+8MInjkmHmTFgtNCZtXonKBCxhxTm4PYwwOH3aevn+8F10 I7TqJf7pdFLzLYf7QVmOMZSprIJMBQxRZv9uM0GbLOv5leSC1uoNWMHnHzvv7Gi+5D ftQFgTVTipmh9whaszAILUCHY/KXewaHSPlSPu/Jl7S/OkE0iC/wI3w2TZTQpxr7+K gJ3fma0EdY6ULFgug0+zZ1QnTZ2wUYY+9DK4VjFvU73rLKD9QJWp8GLNf1hXNVWiCF SNP5V03ak0KUA== From: In-Reply-To: <87wnm49345.fsf@gnu.org> References: <87ilxqbmg7.fsf@miha-pc> <87sfwtcdg5.fsf@gnus.org> <87wnm49345.fsf@gnu.org> Date: Fri, 22 Oct 2021 23:42:44 +0200 Message-ID: <87v91o7n3f.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tassilo Horn writes: > Lars Ingebrigtsen writes: > >> But requires that the string doesn't have anything after the .git, >> whereas it's currently more sloppy. I'm not sure whether that's by >> intent or [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tassilo Horn writes: > Lars Ingebrigtsen writes: > >> But requires that the string doesn't have anything after the .git, >> whereas it's currently more sloppy. I'm not sure whether that's by >> intent or [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Tassilo Horn writes: > Lars Ingebrigtsen writes: > >> But requires that the string doesn't have anything after the .git, >> whereas it's currently more sloppy. I'm not sure whether that's by >> intent or not. (So I'm adding Tassilo to the CCs.) > > No, in my experience there cannot be anything after ".git". At least > it's the last part of the filename and I doubt you can have query > parameters like https://forge.org/user/project.git?foo=bar in a git url. > I tried "git clone https://gitlab.com/rstocker/emacs-bluetooth.git/" and it worked, so we should probably allow ".git/" with a final slash as well. And then I also tried "git clone https://gitlab.com/rstocker/emacs-bluetooth.git//" and it also worked, so I guess any number of slashes are allowed after the final ".git". Therefore I propose something like this: "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git/*\\)?\\'" Thanks, best regards. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmFzMFQTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP0yXEACH/Oy/exmWmUX1UQb6jpVT7YOegv0c 9BlnzZLVC0an9bP8SDuTvpEC4H//lwI7zhAyyx7Jhxr1YGhR5XEmous39tQXDnbA 15H1EUuR0j7i+BWN8Zc4/pyHGpU6yoq7gU9t0UGAHs8/CJUjZA2Su5nRquhWX90/ eSpB2VQbIZ8LhsaSlHLI2GDhrzePHBnvV+nQD4A1YkXdBQZlT5/6uxqsfLo2N6bY Wx96tUTzuPtbgfy2d0n66QTfN9084N64Cw1OJ8YrPuHDDUCT/LOyM+qiqgyp3TUF 4UyP6vluodoyTPsIpyvKvF1miGrAP/KDGBj7L0Q0eKB0A/xHAa85rT1ZgPWKmAm4 lzAXbT7/sHtp7yaVAKCnVJS+h8zVPdAe2Jk/kzSjoz7lCl2grwjNWMXckKnn8yjS n+6wVV9CttnuJZNvA7AOtsgu8kuL/Sk2gi/WsZyuZJJVn36hYdr+A3V6wL/tgtbz l1d370d8ol+64LSuoPtlVL4cbe9YWE9QYLQUcbV7V4ZHz3OCQYM5IDGUCMRDa83H j7Ofn+nAoK529VD44Cx5axZ+107ix/XGkYk6nFuhhqhs2+EYCCdd1TmFp1IdU9LZ 2WZIR2wAw6ccDQaPP2oF1BZkgBi8+ZCMvt/wCkPe+NUmq8W09VBUReQMILo9ZM22 TrjvGMpGGVIOjQ== =Ei3f -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 12:17:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: miha@kamnitnik.top Cc: Lars Ingebrigtsen , 51316@debbugs.gnu.org Received: via spool by 51316-submit@debbugs.gnu.org id=B51316.163499137730956 (code B ref 51316); Sat, 23 Oct 2021 12:17:03 +0000 Received: (at 51316) by debbugs.gnu.org; 23 Oct 2021 12:16:17 +0000 Received: from localhost ([127.0.0.1]:34576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meFwe-00083D-Gn for submit@debbugs.gnu.org; Sat, 23 Oct 2021 08:16:17 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:36911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meEZT-0001X6-Uf for 51316@debbugs.gnu.org; Sat, 23 Oct 2021 06:48:19 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 937A35C0455; Sat, 23 Oct 2021 06:48:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 23 Oct 2021 06:48:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:message-id:in-reply-to :mime-version:content-type; s=fm1; bh=4bnXgvGVrjUsHOKOJUd8dy+8y2 huu2bdw26gl6alXuA=; b=X1aSmfsTkh7x3tpO+nF10tLjxG635x7fbc/lRvI895 nhcmIwq1ea8eWbRzAtUCDzNIqWcTCUiM0PvrdJrtP0rp22xEFm8kce/u5sZV0UV+ NkfIRTQxVzPLbOn0z/SNEnnNzWBZ2YeuAq2mmsOTu/yU7E46EFn42XqMEWQ94geF 1rEqmS8Bx+0ta50e17G7Ok0bLM9v8nwip53Ffl07Yrr4b7/J+cawHnVeKOV7BWA7 pY2sdCmWv5GNHWIvG44fkL1g1v5TYRDW69WydDn8+XNCFOLbi/Qcjvw3FgTzI8l4 +kLb5UBI90ANMlfM32vSgmwP+5xsH3nk0DzpBFaG8chw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=4bnXgv GVrjUsHOKOJUd8dy+8y2huu2bdw26gl6alXuA=; b=HEFY23O12h0SLOKvGtELUC w6i2kLkrdaze7wgdYd57iVmEa+x1ZGv/m9L45jeyzZOY+vREUSE8F9atPVZLkgbX eGuUpoDSCHzfQHCzb11R5EUiJsvNuSQ88FZBAm/b0hXejze630zCAHsYA4koZSaA VOpk/MeqfXRelwJN+wLH28FLGYIDs3UDKAvUrWCWl17Qledxe9z/gcDnMPwJIq5p bDvn57oFP3NKQIq5rvrS7zHVPb10peZPl2eqzo2giYl40hwRRNS4uXWyhpt5Eaya rP9nRvNyEn3HEDif4ta/v3o0h3Ib0zZ/0fel12Ugve/JI88OLok7IxQMUvalT00w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdeftddgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffkfgjgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehthhhorhhnodhgnhhusehfrghsthhmrghilhdrfhhmqeenucggtf frrghtthgvrhhnpeeujeeuleffieejtdevfeekkedvgefgteefvdehvdegudevtdelledt hefgtefhjeenucffohhmrghinhepfhhorhhgvgdrohhrghdpghhithhlrggsrdgtohhmpd hgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehthhhorhhnodhgnhhusehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Oct 2021 06:48:09 -0400 (EDT) References: <87ilxqbmg7.fsf@miha-pc> <87sfwtcdg5.fsf@gnus.org> <87wnm49345.fsf@gnu.org> <87v91o7n3f.fsf@miha-pc> User-agent: mu4e 1.7.3; emacs 29.0.50 From: Tassilo Horn Date: Sat, 23 Oct 2021 11:12:38 +0200 Message-ID: <8735osayjm.fsf@gnu.org> In-reply-to: <87v91o7n3f.fsf@miha-pc> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: writes: >>> But requires that the string doesn't have anything after the .git, >>> whereas it's currently more sloppy. I'm not sure whether that's by >>> intent or not. (So I'm adding Tassilo to the CCs.) >> [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (thorn+gnu[at]fastmail.fm) 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [66.111.4.28 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [66.111.4.28 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Mailman-Approved-At: Sat, 23 Oct 2021 08:16:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) writes: >>> But requires that the string doesn't have anything after the .git, >>> whereas it's currently more sloppy. I'm not sure whether that's by >>> intent or not. (So I'm adding Tassilo to the CCs.) >> >> No, in my experience there cannot be anything after ".git". At least >> it's the last part of the filename and I doubt you can have query >> parameters like https://forge.org/user/project.git?foo=bar in a git >> url. >> > I tried "git clone https://gitlab.com/rstocker/emacs-bluetooth.git/" > and it worked, so we should probably allow ".git/" with a final slash > as well. Ah, good catch, that's obviously correct since .git it is a directory. > And then I also tried "git clone > https://gitlab.com/rstocker/emacs-bluetooth.git//" and it also worked, > so I guess any number of slashes are allowed after the final ".git". I've also tried, and it seems the maximum number of trailing slashes is two. Those all work: https://github.com/djcb/mu https://github.com/djcb/mu/ https://github.com/djcb/mu// https://github.com/djcb/mu.git https://github.com/djcb/mu.git/ https://github.com/djcb/mu.git// but any more / gives me "Not found". Well, and I guess even the two-/ will most probably never occur in real-life when considering where the URL comes from. I mean, those are usually copy-and-pasted from the forge's special "clone me" button or from a browser's URL bar. > Therefore I propose something like this: > > "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git/*\\)?\\'" With the reasoning above, I'd suggest using "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git/?\\)?\\'" Bye, Tassilo From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 12:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Tassilo Horn Cc: Lars Ingebrigtsen , miha@kamnitnik.top, 51316@debbugs.gnu.org Received: via spool by 51316-submit@debbugs.gnu.org id=B51316.16349939402913 (code B ref 51316); Sat, 23 Oct 2021 12:59:01 +0000 Received: (at 51316) by debbugs.gnu.org; 23 Oct 2021 12:59:00 +0000 Received: from localhost ([127.0.0.1]:34655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meGc0-0000kv-0l for submit@debbugs.gnu.org; Sat, 23 Oct 2021 08:59:00 -0400 Received: from heytings.org ([95.142.160.155]:59786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meGbx-0000kl-GO for 51316@debbugs.gnu.org; Sat, 23 Oct 2021 08:58:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1634993935; bh=gby1n8xpWKmGVb04ZWyKoiyV3KTtS8NxegzRxvT/7E8=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=lnK/ecM0QW62t138xLb4JIkoN5QUBXawab+9ejL/rJPqw14l+m3zBdrRLGnO69J85 34bf4fjRhBAiYnXxpzele2ccuYvyc9FbS0Ge39YfY2tNe2IO7KcyTt3B8EPkcFC+Eh CS/e7IMVpMseOZIBspVvwXLiV1oBJwxW3fjBhCs6K4XENo5oFyF5FEtHZ2wwjb/I9j vvQAf1PFrxglLD28Z/pD9f5xw35yXZ92fNiv4xijVKVy+/oVX9QaW/uqNuwTb4yAPT h+Ec7ENzhKoQkETSU0NeQWH9GihEbVpnL4c/LXnO0TigsA5Xn8ShDdZ1YaHiWxaYSE EMTbeWrurmj3w== Date: Sat, 23 Oct 2021 12:58:55 +0000 From: Gregory Heytings In-Reply-To: <8735osayjm.fsf@gnu.org> Message-ID: <2d6e9fbc47ba47bac7fa@heytings.org> References: <87ilxqbmg7.fsf@miha-pc> <87sfwtcdg5.fsf@gnus.org> <87wnm49345.fsf@gnu.org> <87v91o7n3f.fsf@miha-pc> <8735osayjm.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > I've also tried, and it seems the maximum number of trailing slashes is > two. Those all work: > > https://github.com/djcb/mu > https://github.com/djcb/mu/ > https://github.com/djcb/mu// > https://github.com/djcb/mu.git > https://github.com/djcb/mu.git/ > https://github.com/djcb/mu.git// > > but any more / gives me "Not found". Well, and I guess even the two-/ > will most probably never occur in real-life when considering where the > URL comes from. I mean, those are usually copy-and-pasted from the > forge's special "clone me" button or from a browser's URL bar. > Allowing more trailing slashes is a convenience that some but not all Git hosts offer. On Gitlab an (unlimited?) number of trailing slashes are allowed, on Github it's two, on Savannah it's one. The safest solution is probably to allow either a trailing ".git" or a trailing ".git/". From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Oct 2021 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Tassilo Horn Cc: miha@kamnitnik.top, 51316@debbugs.gnu.org Received: via spool by 51316-submit@debbugs.gnu.org id=B51316.163507785226598 (code B ref 51316); Sun, 24 Oct 2021 12:18:02 +0000 Received: (at 51316) by debbugs.gnu.org; 24 Oct 2021 12:17:32 +0000 Received: from localhost ([127.0.0.1]:38047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mecRQ-0006uv-7E for submit@debbugs.gnu.org; Sun, 24 Oct 2021 08:17:32 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mecRN-0006ub-V7 for 51316@debbugs.gnu.org; Sun, 24 Oct 2021 08:17:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1gyaUVum2GRg2qBc/HoI/TQVAyCx3qHEbnjU1lod0uY=; b=RssSpmduDR3oMN8+9IAAFRTKM9 cVr8eKSQ5PtDdTDPRF0u4BMnkmuvC/mxSYa/2tg3GWbZBhlQz5a5HAGQ17+llfBi56Om/TcYAXMNu 6TNsq0mTe3pm/7bsmctinvmrBtLLLOmHfW5eQGKX0MVTBFHeOV+5xifDu3EbZCxKPQXc=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mecRD-0006ov-A8; Sun, 24 Oct 2021 14:17:22 +0200 From: Lars Ingebrigtsen References: <87ilxqbmg7.fsf@miha-pc> <87sfwtcdg5.fsf@gnus.org> <87wnm49345.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAXNSR0IArs4c6QAAAAJiS0dE AP+Hj8y/AAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH5QoYDA8DQsvzUQAAAJhJREFUSMft k9ENgCAMRIGwkqPclF3KUfzBQC3aw/ihwX4R0tdryxHXMBZpMH9OIAeUk3BAXOqZQlqgIXBaQQF7 BjolyKFhLrRCCGKSRPNDa0WnJSgBsV2lXpWrgZyWrETml4R+Sx7Gb6lgiTEQGo3jw7nxwh9344tS UU3MKTSmJxXqQzw/tGgBFzDOcRUwChxjSvP9wEeBDeQcFNLrTcmuAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIxLTEwLTI0VDEyOjE1OjAyKzAwOjAwM7W0pAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0x MC0yNFQxMjoxNTowMiswMDowMELoDBgAAAA4dEVYdGljYzpjb3B5cmlnaHQAQ29weXJpZ2h0IChj KSAxOTk4IEhld2xldHQtUGFja2FyZCBDb21wYW55+Vd5NwAAACF0RVh0aWNjOmRlc2NyaXB0aW9u AHNSR0IgSUVDNjE5NjYtMi4xV63aRwAAACZ0RVh0aWNjOm1hbnVmYWN0dXJlcgBJRUMgaHR0cDov L3d3dy5pZWMuY2gcfwBMAAAAN3RFWHRpY2M6bW9kZWwASUVDIDYxOTY2LTIuMSBEZWZhdWx0IFJH QiBjb2xvdXIgc3BhY2UgLSBzUkdCRFNIqQAAAABJRU5ErkJggg== X-Now-Playing: Lost Girls's _Menneskekollektivet_: "Carried by Invisible Bodies" Date: Sun, 24 Oct 2021 14:17:15 +0200 In-Reply-To: <87wnm49345.fsf@gnu.org> (Tassilo Horn's message of "Fri, 22 Oct 2021 22:45:23 +0200") Message-ID: <87o87ebos4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tassilo Horn writes: >> This is a feature request, in any case, so it should go to Emacs 29, I >> think. > > I would kindly ask to reconsider. This complete bug-reference > auto-setup thingy is new in emacs 28, the forge [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Tassilo Horn writes: >> This is a feature request, in any case, so it should go to Emacs 29, I >> think. > > I would kindly ask to reconsider. This complete bug-reference > auto-setup thingy is new in emacs 28, the forge setup code is even just > a month old, and using your improved regexp doesn't seem risky at all > and might provide a much better user experience to possibly a lot of > users, my vote would be to fix this in emacs-28. But it's not a bug fix, and twiddling this may lead to introducing bugs. (All new features are nice to have.) Tassilo Horn writes: > With the reasoning above, I'd suggest using > > "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git/?\\)?\\'" Doesn't match "https://github.com/emacs-mirror/emacs/", which is what this bug report was originally about, sort of. So I've now added a test for this and altered the regexp to pass the test (on the trunk). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 24 08:17:53 2021 Received: (at control) by debbugs.gnu.org; 24 Oct 2021 12:17:53 +0000 Received: from localhost ([127.0.0.1]:38050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mecRl-0006vU-GS for submit@debbugs.gnu.org; Sun, 24 Oct 2021 08:17:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mecRk-0006vI-5s for control@debbugs.gnu.org; Sun, 24 Oct 2021 08:17:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BM1uvNm6B3dXgAeP+F23u0SFN1z39ztU8LeuGiCgEA0=; b=XX8cl7JcBuWZyIskvMihbCbSPW TrPyYKvBT27XWBX31nOQbqFxwpiHTBNRSVywQSURWQDz4BzT2fTULQDc5thxBTQh0hFc7iBSeIDfJ oCiDU2fO5D8+y09OwRidOsxh0vCEv7sqJe44Qi0Ev4plNbF/39pinkT2rLj7aZhQxqAc=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mecRc-0006pD-2m for control@debbugs.gnu.org; Sun, 24 Oct 2021 14:17:46 +0200 Date: Sun, 24 Oct 2021 14:17:43 +0200 Message-Id: <87mtmyborc.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51316 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 51316 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 51316 28.1 quit From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Oct 2021 08:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Lars Ingebrigtsen , Tassilo Horn Cc: 51316@debbugs.gnu.org Received: via spool by 51316-submit@debbugs.gnu.org id=B51316.163523863316072 (code B ref 51316); Tue, 26 Oct 2021 08:58:01 +0000 Received: (at 51316) by debbugs.gnu.org; 26 Oct 2021 08:57:13 +0000 Received: from localhost ([127.0.0.1]:45115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfIGe-0004BA-S5 for submit@debbugs.gnu.org; Tue, 26 Oct 2021 04:57:13 -0400 Received: from kamnitnik.top ([209.250.245.214]:41388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfIGW-0004Av-Kv for 51316@debbugs.gnu.org; Tue, 26 Oct 2021 04:57:11 -0400 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id 623A99CFB2; Tue, 26 Oct 2021 08:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1635238623; bh=bMiaA52i0gv2iHPmNVQNwwDkb7cpnuWWn1aOLBAT8Zw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iG6RO9wAuaMIHuKQWBcaFMiRQVKYXq5nIXEConLkh7VvwO69F8RyE5aeTy9OI+FMJ lKSZNMdBh05RikBL/dd58Tvb55Yv3bIaXbAe6SdtANPjez3tIhzkNMFgk13Z1bOb4S oSepC7Bqi4G8VfT66Ch2q4stD3d7/A2rGg8DDatY1rkMjMp97IrxDAw4al30shkxch A7Gnpp7XNk+fROICYr70csu3y9ueTksH8gx0xtitl6Y9M8KOVO3oNYQ7IIQjJc3ZBS ylKanZoSu3QnXw2XFxX3dRps3/McHpHYDTvOg9GzvlPp8cc07vmi0yan3SKu97/c4k jKOli7N7g1Dng== From: In-Reply-To: <87o87ebos4.fsf@gnus.org> References: <87ilxqbmg7.fsf@miha-pc> <87sfwtcdg5.fsf@gnus.org> <87wnm49345.fsf@gnu.org> <87o87ebos4.fsf@gnus.org> Date: Tue, 26 Oct 2021 11:01:03 +0200 Message-ID: <87ilxkcg8g.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > Tassilo Horn writes: > >> With the reasoning above, I'd suggest using >> >> "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git/?\\)?\\'" > > Doesn't match "https://github.com/emacs-mirror/emacs/ [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] 0.0 T_SPF_TEMPERROR SPF: test of record failed (temperror) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > Tassilo Horn writes: > >> With the reasoning above, I'd suggest using >> >> "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git/?\\)?\\'" > > Doesn't match "https://github.com/emacs-mirror/emacs/ [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > Tassilo Horn writes: > >> With the reasoning above, I'd suggest using >> >> "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git/?\\)?\\'" > > Doesn't match "https://github.com/emacs-mirror/emacs/", which is what this > bug report was originally about, sort of. So I've now added a test for > this and altered the regexp to pass the test (on the trunk). Thanks. It works now for github URLs, but it should probably be used for gitlab and gitea URLs as well, patch attached. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Allow-matching-non-.git-gitlab-and-gitea-URLs-in-bug.patch Content-Transfer-Encoding: quoted-printable From=20d75c466580a5a1d6242d77d1820f6d7aa0ec4895 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Miha=3D20Rihtar=3DC5=3DA1i=3DC4=3D8D?=3D Date: Tue, 26 Oct 2021 10:54:54 +0200 Subject: [PATCH] Allow matching non-.git gitlab and gitea URLs in bug-reference * lisp/progmodes/bug-reference.el (bug-reference--build-forge-setup-entry): Allow matching non-.git gitlab and gitea URLs, with and without slashes (bug#51316). =2D-- lisp/progmodes/bug-reference.el | 4 +- test/lisp/progmodes/bug-reference-tests.el | 74 ++++++++++++++++++++-- 2 files changed, 72 insertions(+), 6 deletions(-) diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference= .el index 993d670917..d7092a37d4 100644 =2D-- a/lisp/progmodes/bug-reference.el +++ b/lisp/progmodes/bug-reference.el @@ -287,7 +287,7 @@ bug-reference--build-forge-setup-entry (cl-defmethod bug-reference--build-forge-setup-entry (host-domain (_forge-type (eql 'gitlab)) protocol) `(,(concat "[/@]" (regexp-quote host-domain) =2D "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git") + "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git\\)?/?\\'") "\\(\\([.A-Za-z0-9_/-]+\\)?\\([#!]\\)\\([0-9]+\\)\\)\\>" ,(lambda (groups) (let ((ns-project (nth 1 groups))) @@ -304,7 +304,7 @@ bug-reference--build-forge-setup-entry (cl-defmethod bug-reference--build-forge-setup-entry (host-domain (_forge-type (eql 'gitea)) protocol) `(,(concat "[/@]" (regexp-quote host-domain) =2D "[/:]\\([.A-Za-z0-9_/-]+\\)\\.git") + "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git\\)?/?\\'") "\\(\\([.A-Za-z0-9_/-]+\\)?\\(?:#\\)\\([0-9]+\\)\\)\\>" ,(lambda (groups) (let ((ns-project (nth 1 groups))) diff --git a/test/lisp/progmodes/bug-reference-tests.el b/test/lisp/progmod= es/bug-reference-tests.el index 7a355509a1..7a3ab5fbda 100644 =2D-- a/test/lisp/progmodes/bug-reference-tests.el +++ b/test/lisp/progmodes/bug-reference-tests.el @@ -26,12 +26,26 @@ (require 'bug-reference) (require 'ert) =20 =2D(defun test--get-github-entry (protocol) +(defun test--get-github-entry (url) (and (string-match (car (bug-reference--build-forge-setup-entry =2D "github.com" 'github protocol)) =2D protocol) =2D (match-string 1 protocol))) + "github.com" 'github "https")) + url) + (match-string 1 url))) + +(defun test--get-gitlab-entry (url) + (and (string-match + (car (bug-reference--build-forge-setup-entry + "gitlab.com" 'gitlab "https")) + url) + (match-string 1 url))) + +(defun test--get-gitea-entry (url) + (and (string-match + (car (bug-reference--build-forge-setup-entry + "gitea.com" 'gitea "https")) + url) + (match-string 1 url))) =20 (ert-deftest test-github-entry () (should @@ -59,4 +73,56 @@ test-github-entry (test--get-github-entry "https://github.com/magit/magit/") "magit/magit"))) =20 +(ert-deftest test-gitlab-entry () + (should + (equal + (test--get-gitlab-entry "git@gitlab.com:larsmagne/csid.git") + "larsmagne/csid")) + (should + (equal + (test--get-gitlab-entry "git@gitlab.com:larsmagne/csid") + "larsmagne/csid")) + (should + (equal + (test--get-gitlab-entry "https://gitlab.com/magit/magit.git") + "magit/magit")) + (should + (equal + (test--get-gitlab-entry "https://gitlab.com/magit/magit.git/") + "magit/magit")) + (should + (equal + (test--get-gitlab-entry "https://gitlab.com/magit/magit") + "magit/magit")) + (should + (equal + (test--get-gitlab-entry "https://gitlab.com/magit/magit/") + "magit/magit"))) + +(ert-deftest test-gitea-entry () + (should + (equal + (test--get-gitea-entry "git@gitea.com:larsmagne/csid.git") + "larsmagne/csid")) + (should + (equal + (test--get-gitea-entry "git@gitea.com:larsmagne/csid") + "larsmagne/csid")) + (should + (equal + (test--get-gitea-entry "https://gitea.com/magit/magit.git") + "magit/magit")) + (should + (equal + (test--get-gitea-entry "https://gitea.com/magit/magit.git/") + "magit/magit")) + (should + (equal + (test--get-gitea-entry "https://gitea.com/magit/magit") + "magit/magit")) + (should + (equal + (test--get-gitea-entry "https://gitea.com/magit/magit/") + "magit/magit"))) + ;;; bug-reference-tests.el ends here =2D-=20 2.33.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmF3w88THG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP2nMD/4v9zKf9XcBx+ij7FiWX5/v/IFvshLZ 68HoNQYOkQToeK8gA91IqH2+jX77EuWCk0OeApoL3oKeKwrNRoEi4hnn0JwpHUNf spgnOOW2jluCg1axC/3UERZQnilaYtRh0gapuaLyfmSz4h+vcgd9/N0gEOv2HQ/a g906KuP1zq2B4mUVbZsRssxR+E6JEQa72voudxAzR/6t9bvbvnIajsqJst0jBKlO rpGBtQOiblRsGR6J6V9M7puXIkQj+/iC8PhYREtRrUR4Ljlvo2p6ydjdSi/E28Bv 5cStjec/9rk6H8moQs9cBP/8/WA5FbsJ9Rm/vEXxZYCx5C7n+HDP4C6kxIKmkS6Y tH0F5dixWU9B5MwKe5Yu84czmkyOjLH8pXpRsRHleSUYP12KsIt2EolajmH+UvOZ gvKU1XF3azhm1zfqhF+RBOFnA6XcBvLQnz1FwLUBrTLmi4M0GZWHmsEa3CyrBeiT nsALS/GoEyopJpGe1vwH9OR+ReDK190uXLk7s1rlkhlxajidnmnzLE7Zdga7ZJzR MP0XYhNEMB/GC4RfAJdZ3blvBaYXpsKuv13vAFd1zosTYrXJdFAnp7OxDptqVubR PcLYUPaE0KCiVDDpyMJR26MJkjDTRo0ZiXziU8ZJNornl3ekT3+QumY8T+YtSG87 G75gMrNDbXJISA== =cBtX -----END PGP SIGNATURE----- --==-=-=-- From unknown Sat Jun 14 05:28:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Oct 2021 13:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Cc: 51316@debbugs.gnu.org, Tassilo Horn Received: via spool by 51316-submit@debbugs.gnu.org id=B51316.163533977716058 (code B ref 51316); Wed, 27 Oct 2021 13:03:02 +0000 Received: (at 51316) by debbugs.gnu.org; 27 Oct 2021 13:02:57 +0000 Received: from localhost ([127.0.0.1]:48664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfia1-0004Aw-6k for submit@debbugs.gnu.org; Wed, 27 Oct 2021 09:02:57 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfiZx-0004Af-E4 for 51316@debbugs.gnu.org; Wed, 27 Oct 2021 09:02:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fooNxwYpkQDJQDn0JFZLEHizjB/KiYp7z5z2CzZ+uto=; b=fbpD9ODCk8PGmpiBebwGHrsqT8 ItpKR+gsFLIXY06srvgKdik119NBLgtPR1r45Ho56oLRRWzkqbbExsRWwPP/X8ZGf5cPE/IsE9JNv 5RPLbTuuX+SVE47oXnBXtvAOf85FNoiOhar0wdGVZ37Hw128b+2VKhM9MTbxoVZ62NkI=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfiZo-0005x5-IQ; Wed, 27 Oct 2021 15:02:47 +0200 From: Lars Ingebrigtsen References: <87ilxqbmg7.fsf@miha-pc> <87sfwtcdg5.fsf@gnus.org> <87wnm49345.fsf@gnu.org> <87o87ebos4.fsf@gnus.org> <87ilxkcg8g.fsf@miha-pc> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEV7YWGAZWChdDdz T02DW0WUaTyLY0O/jS3////xjG5rAAAAAWJLR0QIht6VegAAAAd0SU1FB+UKGwwnNcKZZ4wAAAGo SURBVDjLdZRtbsMgDIZT7QI7wqRt2v/aYf9nygGWNQeoCVfo9WcbA0mlWiopPP6I4SXTVO3kz9fT 6U2fLxO4xWowz+8272BYfgaYngE2YCOgeKljlIGDASsVK5VfIIjqBdO21JVmGBOw1Qg1ybDN5pPm jNHXSNfOlkEASTLegRmKA/HwELL6nBxEyKGV1uFjIY/41G1A1ggUlxt759c7SXBIGYh0P4IDomsR 8KWtspbBBmruH50yCquAGsCNqL6WbXyPIB0QBiDvzIZQ/3iDCL0O1i3YBoDGLWL2PiRFglok2LSB COnCNRlaUGlnnlZGGJng1sVQgL5tq4oR7gARLnoqpfARzLKtUc8y3VpXTVekOpPi7WCarmYgzqKQ 1qkAE5Eu4VFG02HWNWE1RHzoYggHAFfJc+Ym4Ye3El/s+urAJSog4Si+N2mDNnCJ5gi7F+U2m4g1 cT+sdaRaII0I3NVgDr0+0qF4vYAyFBqXSOSTknkS7d/PIuTSEc73BR+B3Xk6H6/ihB8y/lFT5wBh latZZHHLELJILFvHrkT8XTPaxyWl+o2Bfy5i+pILZg5PAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIx LTEwLTI3VDEyOjM5OjUzKzAwOjAwtrpcyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0yN1Qx MjozOTo1MyswMDowMMfn5HUAAAAASUVORK5CYII= X-Now-Playing: Aksak Maboul's _Figures (2)_: "Fatrasie pulverisee" Date: Wed, 27 Oct 2021 15:02:44 +0200 In-Reply-To: <87ilxkcg8g.fsf@miha-pc> (miha@kamnitnik.top's message of "Tue, 26 Oct 2021 11:01:03 +0200") Message-ID: <87ee86boy3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: writes: > Thanks. It works now for github URLs, but it should probably be used for > gitlab and gitea URLs as well, patch attached. Thanks; applied to Emacs 29. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) writes: > Thanks. It works now for github URLs, but it should probably be used for > gitlab and gitea URLs as well, patch attached. Thanks; applied to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no