mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Whoops. Bring back pathIsIgnored.
This commit is contained in:
@@ -148,6 +148,7 @@ export default class GitRepositoryAsync {
|
||||
if (!this.path) {
|
||||
this.path = repo.path().replace(/\/$/, '')
|
||||
}
|
||||
|
||||
return this.path
|
||||
})
|
||||
}
|
||||
@@ -463,6 +464,7 @@ export default class GitRepositoryAsync {
|
||||
return Promise.all([this.getRepo(), this.getWorkingDirectory()])
|
||||
.then(([repo, wd]) => {
|
||||
const relativePath = this.relativize(_path, wd)
|
||||
return Git.Ignore.pathIsIgnored(repo, relativePath)
|
||||
})
|
||||
.then(ignored => Boolean(ignored))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user