-
Notifications
You must be signed in to change notification settings - Fork 147
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 symlink handling #764
Draft
matrss
wants to merge
8
commits into
fsfe:main
Choose a base branch
from
matrss:fix-symlinks-for-git-annex
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Fix symlink handling #764
Commits on Jun 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b7f8e8b - Browse repository at this point
Copy the full SHA b7f8e8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70638ed - Browse repository at this point
Copy the full SHA 70638edView commit details -
Fix ignored path detection in ignored directories
Previously a sub-path of an ignored directory was not considered to be ignored, e.g. is_ignored returned False for a file build/hello.py even if _all_ignored_files contained Path("build"). Instead of just checking if the path is in the ignored files we also have to check if it is inside of an ignored directory. Additionally this commit fixes a bug that surfaced: when building the _all_ignored_files set all_files contains an empty string as its last element. This leads to Path(".") being an element in _all_ignored_files, i.e. ignore everything. Using all but the last element from all_files fixes that.
Configuration menu - View commit details
-
Copy full SHA for 6ed46db - Browse repository at this point
Copy the full SHA 6ed46dbView commit details -
Add tests for better handling of symlinks
These tests assume the interpretation of the REUSE specification that: 1. a symlink pointing to a covered file is considered to be the same file as the covered file and can therefore be ignored. 2. a symlink pointing to a file that is not a covered file is itself considered to be a covered file and should not be ignored, unless the symlink itself is ignored by other means.
Configuration menu - View commit details
-
Copy full SHA for 2bb117c - Browse repository at this point
Copy the full SHA 2bb117cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fcee822 - Browse repository at this point
Copy the full SHA fcee822View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0552ef1 - Browse repository at this point
Copy the full SHA 0552ef1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03f5b43 - Browse repository at this point
Copy the full SHA 03f5b43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13e4fa7 - Browse repository at this point
Copy the full SHA 13e4fa7View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.