mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Whoops. Bring back pathIsIgnored.
This commit is contained in:
parent
b2b8370166
commit
aee053dc10
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user