Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

IndexFile._to_relative_path - fix case where absolute path gets stripped of trailing slash#2012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

kamilkozik7
Copy link
Contributor

@kamilkozik7kamilkozik7 commentedMar 7, 2025
edited
Loading

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 inos.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.

jconstance-amplify, kelibezhani, and cl3086 reacted with thumbs up emoji
@kamilkozik7kamilkozik7force-pushed thefix-trailing-slash branch 3 times, most recently from2bbb6ee to3a40c1cCompareMarch 7, 2025 17:55
@kamilkozik7kamilkozik7 marked this pull request as ready for reviewMarch 7, 2025 18:07
Copy link

@kelibezhanikelibezhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

Copy link
Member

@ByronByron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Great, thanks a lot for the fix!
Looks good to me, too!

@ByronByron merged commite85a895 intogitpython-developers:mainMar 12, 2025
24 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ByronByronByron approved these changes

@kelibezhanikelibezhanikelibezhani approved these changes

Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@kamilkozik7@Byron@kelibezhani

[8]ページ先頭

©2009-2025 Movatter.jp