mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
fix "invalid Git revision 'master'"
This commit is contained in:
parent
2acbe722a8
commit
ef9935c98c
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue