You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repository.GetAllContentsByRef has a problem where it's reference parameter is guarded by a Empty-Null check but it calls ApiUtils.RepositoryContent which contains the following formatter:
To return the root's contents I'd have to pass an empty string here because if I pass something like "/" as path then the following gets constructed:
repos/bla/foo/contents//?ref=something
Which is not only goofy, but also causes a 302 redirect that strips off the ref query parameter - which may be considered a bug in the site's forwarding logic but the URL really shouldn't have a double slash in it.
The text was updated successfully, but these errors were encountered:
Repository.GetAllContentsByRef
has a problem where it'sreference
parameter is guarded by a Empty-Null check but it callsApiUtils.RepositoryContent
which contains the following formatter:"repos/{0}/{1}/contents/{2}?ref={3}".FormatUri(owner, name, path, reference);
To return the root's contents I'd have to pass an empty string here because if I pass something like "/" as
path
then the following gets constructed:repos/bla/foo/contents//?ref=something
Which is not only goofy, but also causes a
302
redirect that strips off theref
query parameter - which may be considered a bug in the site's forwarding logic but the URL really shouldn't have a double slash in it.The text was updated successfully, but these errors were encountered: