Skip to content
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

Fix handling of relative paths and running from non-Git-root #584

Merged
merged 9 commits into from Apr 16, 2024

Conversation

akaihola
Copy link
Owner

Fixes #522

@akaihola akaihola added the bug Something isn't working label Apr 15, 2024
@akaihola akaihola added this to the Darker 2.1.1 milestone Apr 15, 2024
@akaihola akaihola requested a review from Svenito April 15, 2024 16:50
@akaihola akaihola self-assigned this Apr 15, 2024
Copy link
Collaborator

@Svenito Svenito left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Now Git calls work correctly even if the common root directory in which
to run Git doesn't exist anymore.
- rename `cwd=` to `repo_root=` for clarity
- transform paths: relative to cwd -> relative to `repo_root`
Add such test cases to tests for
- `_git_exists_in_revision()`
- `get_missing_at_revision()`
@akaihola akaihola merged commit 3cac4fd into master Apr 16, 2024
38 checks passed
@akaihola akaihola deleted the relative-paths branch April 16, 2024 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

Relative path in a repo subdirectory not found when using hash symmetric difference
2 participants