1
0
Fork 0
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:
Eelco Dolstra 2025-01-07 14:52:00 +01:00
parent f705ce7f9a
commit 4077aa43a8
6 changed files with 2 additions and 20 deletions

View file

@ -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.