fetchgit: Support fetching signed tags over dumb http transport

authored by Scott Worley and committed by sternenseemann 697bba98 9c035c44

+8 -1
+1 -1
pkgs/build-support/fetchgit/nix-prefetch-git
··· 166 166 clean_git fetch -t ${builder:+--progress} origin || return 1 167 167 168 168 local object_type=$(git cat-file -t "$hash") 169 - if [[ "$object_type" == "commit" ]]; then 169 + if [[ "$object_type" == "commit" || "$object_type" == "tag" ]]; then 170 170 clean_git checkout -b "$branchName" "$hash" || return 1 171 171 elif [[ "$object_type" == "tree" ]]; then 172 172 clean_git config user.email "nix-prefetch-git@localhost"
+7
pkgs/build-support/fetchgit/tests.nix
··· 72 72 leaveDotGit = true; 73 73 fetchSubmodules = true; 74 74 }; 75 + 76 + dumb-http-signed-tag = testers.invalidateFetcherByDrvHash fetchgit { 77 + name = "dumb-http-signed-tag-source"; 78 + url = "https://git.scottworley.com/pub/git/pinch"; 79 + rev = "v3.0.14"; 80 + sha256 = "sha256-bd0Lx75Gd1pcBJtwz5WGki7XoYSpqhinCT3a77wpY2c="; 81 + }; 75 82 }