fix "invalid Git revision 'master'"

This commit is contained in:
yihuang 2020-10-04 14:20:17 +08:00
parent 2acbe722a8
commit ef9935c98c
No known key found for this signature in database
GPG key ID: B0E508BA8BD63494
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ def fetch_git(pkg):
"--url", "--url",
pkg["source"]["url"], pkg["source"]["url"],
"--rev", "--rev",
pkg["source"]["reference"], pkg["source"]["resolved_reference"],
], ],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,

View file

@ -157,7 +157,7 @@ pythonPackages.callPackage
( (
builtins.fetchGit { builtins.fetchGit {
inherit (source) url; inherit (source) url;
rev = source.reference; rev = source.resolved_reference;
ref = sourceSpec.branch or sourceSpec.rev or sourceSpec.tag or "HEAD"; ref = sourceSpec.branch or sourceSpec.rev or sourceSpec.tag or "HEAD";
} }
) else if isLocal then (poetryLib.cleanPythonSources { src = localDepPath; }) else ) else if isLocal then (poetryLib.cleanPythonSources { src = localDepPath; }) else