mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Ensure ref passed to builtins.fetchGit points to refs/tags/sourceSpec.tag
This commit is contained in:
parent
26ea0644b3
commit
9191fbae30
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ pythonPackages.callPackage
|
|||
builtins.fetchGit {
|
||||
inherit (source) url;
|
||||
rev = source.resolved_reference or source.reference;
|
||||
ref = sourceSpec.branch or sourceSpec.rev or sourceSpec.tag or "HEAD";
|
||||
ref = sourceSpec.branch or sourceSpec.rev or (if sourceSpec?tag then "refs/tags/${sourceSpec.tag}" else "HEAD");
|
||||
}
|
||||
)
|
||||
else if isUrl then
|
||||
|
|
Loading…
Add table
Reference in a new issue