livepush: Ignore the .git directory when performing a livepush

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-06-12 10:35:44 +01:00
parent 5e4daf8c3d
commit ea43130135

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),