1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 06:11:46 +02:00

Partially revert "Format GitHub paths as URLs"

This reverts commit 0286edb588 for now
since it doesn't handle directories correctly.
This commit is contained in:
Eelco Dolstra 2022-11-25 16:22:57 +01:00
parent 561440bd6d
commit b27cd882ac

View file

@ -333,17 +333,6 @@ struct GitHubInputScheme : GitArchiveInputScheme
.applyOverrides(input.getRef(), input.getRev())
.clone(destDir);
}
std::pair<ref<InputAccessor>, Input> getAccessor(ref<Store> store, const Input & _input) const override
{
auto [accessor, input] = GitArchiveInputScheme::getAccessor(store, _input);
if (getHost(input) == "github.com")
accessor->setPathDisplay(fmt("https://github.com/%s/%s/blob/%s",
getOwner(input),
getRepo(input),
input.getRev()->to_string(Base16, false)));
return {accessor, input};
}
};
struct GitLabInputScheme : GitArchiveInputScheme