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:
parent
561440bd6d
commit
b27cd882ac
1 changed files with 0 additions and 11 deletions
|
@ -333,17 +333,6 @@ struct GitHubInputScheme : GitArchiveInputScheme
|
||||||
.applyOverrides(input.getRef(), input.getRev())
|
.applyOverrides(input.getRef(), input.getRev())
|
||||||
.clone(destDir);
|
.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
|
struct GitLabInputScheme : GitArchiveInputScheme
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue