mirror of
https://github.com/NixOS/nix
synced 2025-06-28 09:31:16 +02:00
ParsedURL: Remove base field
This commit is contained in:
parent
f705ce7f9a
commit
4077aa43a8
6 changed files with 2 additions and 20 deletions
|
@ -426,7 +426,7 @@ struct GitInputScheme : InputScheme
|
|||
auto url = parseURL(getStrAttr(input.attrs, "url"));
|
||||
bool isBareRepository = url.scheme == "file" && !pathExists(url.path + "/.git");
|
||||
repoInfo.isLocal = url.scheme == "file" && !forceHttp && !isBareRepository;
|
||||
repoInfo.url = repoInfo.isLocal ? url.path : url.base;
|
||||
repoInfo.url = repoInfo.isLocal ? url.path : url.to_string();
|
||||
|
||||
// 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