From 94286dc833b0b4686d67f7944ef34260447bd15f Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 15 Jun 2020 12:58:27 +0200 Subject: [PATCH] auto update: add git fetch command --- src/components/AutoUpdateComponent.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/AutoUpdateComponent.ts b/src/components/AutoUpdateComponent.ts index f65f171..c6b75b3 100644 --- a/src/components/AutoUpdateComponent.ts +++ b/src/components/AutoUpdateComponent.ts @@ -31,6 +31,9 @@ export default class AutoUpdateComponent extends ApplicationComponent { try { Logger.info('Starting auto update...'); + // Fetch + await this.runCommand(`git fetch`); + // Checkout new source await this.runCommand(`git checkout ${checkout_sha}`);