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
It opens https://github.com/{owner}/{repo}/tree/{hash}
Actual results
It opened https://github.com/{owner}/{repo}/blob/{hash}
Additional info
URLs for subdirectories (e.g. git brws ./src) are redirected from /blob/ URL to /tree/ URL automatically. However, only a root directory (e.g. git brws .) does not redirect the URL hence 404 error caused on a browser. I think git-brws should not rely on the redirect.
The text was updated successfully, but these errors were encountered:
rhysd
changed the title
URLs for directorie paths should use /tree/ instead of /blob/
URLs for directory paths should use /tree/ instead of /blob/Aug 31, 2020
Repro
Run:
Expected results
It opens
https://github.com/{owner}/{repo}/tree/{hash}
Actual results
It opened
https://github.com/{owner}/{repo}/blob/{hash}
Additional info
URLs for subdirectories (e.g.
git brws ./src
) are redirected from/blob/
URL to/tree/
URL automatically. However, only a root directory (e.g.git brws .
) does not redirect the URL hence 404 error caused on a browser. I think git-brws should not rely on the redirect.The text was updated successfully, but these errors were encountered: