all repos — searchix @ df77930bef039e4aef024574c60fb64d75287eee

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: linking to wrong declaration URLs

Alan Pearce
commit

df77930bef039e4aef024574c60fb64d75287eee

parent

fb25a97b6c55c6d51e59d983fdb74b4917c97bf0

1 file changed, 3 insertions(+), 0 deletions(-)

jump to
M internal/importer/ingest.gointernal/importer/ingest.go
@@ -57,6 +57,9 @@ return "very strange"
} func makeGitHubFileURL(userRepo string, ref string, subPath string) string { + if ref == "" { + ref = "master" + } url, _ := url.JoinPath("https://github.com/", userRepo, "blob", ref, subPath) return url