bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#51316: 29.0.50; Should we match the final ".git" in bug-reference au


From: miha
Subject: bug#51316: 29.0.50; Should we match the final ".git" in bug-reference autosetup?
Date: Fri, 22 Oct 2021 23:42:44 +0200

Tassilo Horn <tsdh@gnu.org> writes:

> Lars Ingebrigtsen <larsi@gnus.org> 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.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]