Skip to content

Commit

Permalink
Ignore .sl directory the same way as .hg.
Browse files Browse the repository at this point in the history
The .sl directory is used by Sapling (https://sapling-scm.com/) so
it should be handled like the other SCM directories.

Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
  • Loading branch information
Flameeyes authored and carmenbianca committed Nov 28, 2023
1 parent 4de4450 commit 17dab3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -54,6 +54,8 @@ CLI command and its behaviour. There are no guarantees of stability for the
currently exits early. To automatically create a .license file for
unrecognised files, `--fallback-dot-license` has been added. (#823, #851,
#853, #859; this took a while to get right.)
- Ignore `.sl` directory as used by [Sapling SCM](https://sapling-scm.com/).
(#867)

### Changed

Expand Down
1 change: 1 addition & 0 deletions src/reuse/__init__.py
Expand Up @@ -54,6 +54,7 @@
_IGNORE_DIR_PATTERNS = [
re.compile(r"^\.git$"),
re.compile(r"^\.hg$"),
re.compile(r"^\.sl$"), # Used by Sapling SCM
re.compile(r"^LICENSES$"),
re.compile(r"^\.reuse$"),
]
Expand Down

0 comments on commit 17dab3c

Please sign in to comment.