Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchgit/nix-prefetch-git
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ checkout_hash(){
clean_git fetch -t ${builder:+--progress} origin || return 1

local object_type=$(git cat-file -t "$hash")
if [[ "$object_type" == "commit" ]]; then
if [[ "$object_type" == "commit" || "$object_type" == "tag" ]]; then
clean_git checkout -b "$branchName" "$hash" || return 1
elif [[ "$object_type" == "tree" ]]; then
clean_git config user.email "nix-prefetch-git@localhost"
Expand Down
7 changes: 7 additions & 0 deletions pkgs/build-support/fetchgit/tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,11 @@
leaveDotGit = true;
fetchSubmodules = true;
};

dumb-http-signed-tag = testers.invalidateFetcherByDrvHash fetchgit {
name = "dumb-http-signed-tag-source";
url = "https://git.scottworley.com/pub/git/pinch";
rev = "v3.0.14";
sha256 = "sha256-bd0Lx75Gd1pcBJtwz5WGki7XoYSpqhinCT3a77wpY2c=";
};
}