mirror of
https://github.com/NixOS/nix
synced 2025-07-03 02:01:48 +02:00
parent
872a22fa23
commit
9a5ca802c7
3 changed files with 9 additions and 3 deletions
|
@ -142,7 +142,7 @@ struct GitInput : Input
|
|||
return res;
|
||||
}
|
||||
|
||||
std::optional<Path> getSourcePath() const
|
||||
std::optional<Path> getSourcePath() const override
|
||||
{
|
||||
if (url.scheme == "git+file" && !ref && !rev)
|
||||
return url.path;
|
||||
|
@ -172,7 +172,8 @@ struct GitInput : Input
|
|||
return {std::move(*tree), input};
|
||||
}
|
||||
|
||||
auto [isLocal, actualUrl] = getActualUrl();
|
||||
auto [isLocal, actualUrl_] = getActualUrl();
|
||||
auto actualUrl = actualUrl_; // work around clang bug
|
||||
|
||||
// If this is a local directory and no ref or revision is
|
||||
// given, then allow the use of an unclean working tree.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue