-
-
Notifications
You must be signed in to change notification settings - Fork 933
git: index: base: use os.path.relpath #744
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
97164b0
to
176474b
Compare
Codecov Report
@@ Coverage Diff @@
## master #744 +/- ##
==========================================
+ Coverage 94.66% 94.66% +<.01%
==========================================
Files 59 59
Lines 9289 9298 +9
==========================================
+ Hits 8793 8802 +9
Misses 496 496
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for submitting the fix! There is only a minor issue preventing a merge.
Thanks for having a look.
git/test/test_index.py
Outdated
repo = Mocked() | ||
path = os.path.join(root, 'file') | ||
index = IndexFile(repo) | ||
index._to_relative_path(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an assertion missing? It looks like _to_relative_path
returns the relative path, which is not verified here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right. Thank you, fixed in a new version.
Fixes gitpython-developers#743 Signed-off-by: Ruslan Kuprieiev <[email protected]>
Thanks a lot! Looking good! |
Fixes #743
Signed-off-by: Ruslan Kuprieiev [email protected]