Skip to content

Commit 753f00c

Browse files
committed
fix: add comment about longest-possible match
1 parent 269efa0 commit 753f00c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libfetchers/github.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ struct GitArchiveInputScheme : InputScheme
172172
return input;
173173
}
174174

175+
// Search for the longest possible match starting from the begining and ending at either the end or a path segment.
175176
std::optional<std::string> getAccessToken(const fetchers::Settings & settings, const std::string & host, const std::string & url) const override
176177
{
177178
auto tokens = settings.accessTokens.get();

0 commit comments

Comments
 (0)