Skip to content

Commit

Permalink
Fix path to repository-wide exclude file
Browse files Browse the repository at this point in the history
This file is at `info/exclude`, not `info/excludes`.
  • Loading branch information
pietern committed Oct 18, 2024
1 parent c5043c3 commit e99939b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/git/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ func NewRepository(path vfs.Path) (*Repository, error) {
newStringIgnoreRules([]string{
".git",
}),
// Load repository-wide excludes file.
repo.newIgnoreFile(".git/info/excludes"),
// Load repository-wide exclude file.
repo.newIgnoreFile(".git/info/exclude"),
// Load root gitignore file.
repo.newIgnoreFile(".gitignore"),
}
Expand Down

0 comments on commit e99939b

Please sign in to comment.