gitfs icon indicating copy to clipboard operation
gitfs copied to clipboard

URL Format When Specifying Path & Non-Master Branch

Open CDRayn opened this issue 3 years ago • 1 comments

Hello, I'm trying to use gitfs to retrieve files from a repository using a path and pointing to a branch that isn't master. What is the correct format for the URL to use with gitfs.New()? The documentation doesn't give a specify example when using both a path and a branch in the URL. I've tried the format github.com/owner-name/project-name/some/path/to/director@heads/PRO-72 but I just get a 404.

CDRayn avatar May 28 '21 16:05 CDRayn

Hey there,

See New() doc

Did you try github.com/<owner>/<repo>@<ref>#<path>?

posener avatar May 29 '21 18:05 posener