MCPcopy Create free account
hub / github.com/github/gh-aw / downloadFileFromGitHub

Function downloadFileFromGitHub

pkg/parser/remote_fetch.go:897–899  ·  view source on GitHub ↗
(owner, repo, path, ref string)

Source from the content-addressed store, hash-verified

895}
896
897func downloadFileFromGitHub(owner, repo, path, ref string) ([]byte, error) {
898 return downloadFileFromGitHubWithDepth(owner, repo, path, ref, 0, "")
899}
900
901func downloadFileFromGitHubWithDepth(owner, repo, path, ref string, symlinkDepth int, host string) ([]byte, error) {
902 client, err := createRESTClientForHost(host)

Calls 1