Title: `IndexFile._to_relative_path` - fix case where absolute path gets stripped of trailing slash by kamilkozik7 · Pull Request #2012 · gitpython-developers/GitPython · GitHub
Open Graph Title: `IndexFile._to_relative_path` - fix case where absolute path gets stripped of trailing slash by kamilkozik7 · Pull Request #2012 · gitpython-developers/GitPython
X Title: `IndexFile._to_relative_path` - fix case where absolute path gets stripped of trailing slash by kamilkozik7 · Pull Request #2012 · gitpython-developers/GitPython
Description: I encountered this issue on MacOS, python 3.7 and later Added fix and appropriate unit test. Stripping of trailing slash seems to be happening in os.path.relpath, altough I am not sure whether that is expected behaviour. In case it is not expected, and ever gets fixed, I added an additional check ( and not result.endswith(os.sep)) to make sure that the trailing slash doesn't get duplicated.
Open Graph Description: I encountered this issue on MacOS, python 3.7 and later Added fix and appropriate unit test. Stripping of trailing slash seems to be happening in os.path.relpath, altough I am not sure whether that...
X Description: I encountered this issue on MacOS, python 3.7 and later Added fix and appropriate unit test. Stripping of trailing slash seems to be happening in os.path.relpath, altough I am not sure whether that...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2012
X: @github
Domain: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bbbf8def-56d1-2d98-9c77-8bd82161f90b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 89A2:78E00:B3CDB1:E8893F:6990B6C4 |
| html-safe-nonce | 4070f377626445eebd2b06e540c8e7b37e7fc487c84b8c74e6171a843cf09aad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUEyOjc4RTAwOkIzQ0RCMTpFODg5M0Y6Njk5MEI2QzQiLCJ2aXNpdG9yX2lkIjoiODYwMjA3MDYyODcwMDc0MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 24db7150632298dc05abd2380b1fb4048fe595f5a0c19ffa1936a46e71d22b92 |
| hovercard-subject-tag | pull_request:2379133688 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/2012/files |
| twitter:image | https://avatars.githubusercontent.com/u/26979805?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/26979805?s=400&v=4 |
| og:image:alt | I encountered this issue on MacOS, python 3.7 and later Added fix and appropriate unit test. Stripping of trailing slash seems to be happening in os.path.relpath, altough I am not sure whether that... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width