From b27cd882ac5903b3042872c7e9b5d5fc8faba4d6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 Nov 2022 16:22:57 +0100 Subject: [PATCH] Partially revert "Format GitHub paths as URLs" This reverts commit 0286edb58876d36b2e3b996ae469dc37088d42f2 for now since it doesn't handle directories correctly. --- src/libfetchers/github.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc index 4e7d0ed3f..dd950d526 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -333,17 +333,6 @@ struct GitHubInputScheme : GitArchiveInputScheme .applyOverrides(input.getRef(), input.getRev()) .clone(destDir); } - - std::pair, Input> getAccessor(ref 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