Merge pull request #1305 from balena-io/live-ignore-dev

livepush: Ignore the .git directory when performing a livepush
This commit is contained in:
CameronDiver 2019-06-12 05:58:47 -07:00 committed by GitHub
commit cf93438df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,7 @@ export class LivepushManager {
const monitor = chokidar.watch('.', {
cwd: context,
ignoreInitial: true,
ignored: '.git',
});
monitor.on('add', (changedPath: string) =>
addEvent(this.updateEventsWaiting[serviceName], changedPath),