fetchgit: escape dot in regex

This regex should match files ending in `.git`, not any character and `git` after that.
This commit is contained in:
Luflosi 2021-02-03 18:35:42 +01:00
parent 33b610fa09
commit e238ff073f
No known key found for this signature in database
GPG key ID: 4E41E29EDCC345D0

View file

@ -3,7 +3,7 @@
inherit (lib) removeSuffix splitString last;
base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));
matched = builtins.match "(.*).git" base;
matched = builtins.match "(.*)\\.git" base;
short = builtins.substring 0 7 rev;