From e238ff073f7cef9766261b6aec6cf98ae33f72b0 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 3 Feb 2021 18:35:42 +0100 Subject: fetchgit: escape dot in regex This regex should match files ending in `.git`, not any character and `git` after that. --- pkgs/build-support/fetchgit/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/build-support/fetchgit') diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index df97ef1492d..3222866dc78 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -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; -- cgit 1.4.1