From 753f00c351108ee8a91d068da9d1943a67c063ec Mon Sep 17 00:00:00 2001 From: Thomas Bereknyei Date: Thu, 13 Feb 2025 12:47:09 -0500 Subject: [PATCH] fix: add comment about longest-possible match --- src/libfetchers/github.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc index 3c8a587c2..8747498be 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -172,6 +172,7 @@ struct GitArchiveInputScheme : InputScheme return input; } + // Search for the longest possible match starting from the begining and ending at either the end or a path segment. std::optional getAccessToken(const fetchers::Settings & settings, const std::string & host, const std::string & url) const override { auto tokens = settings.accessTokens.get();