From efa250d36619b711eeea4cf56b4d1abf5fb64d86 Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Thu, 26 Oct 2023 07:55:09 +1100 Subject: [PATCH] Watch Git tags for experiment table updates --- extension/src/cli/git/constants.ts | 1 + extension/src/experiments/data/index.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extension/src/cli/git/constants.ts b/extension/src/cli/git/constants.ts index 6abe054a44..a2d3bebf06 100644 --- a/extension/src/cli/git/constants.ts +++ b/extension/src/cli/git/constants.ts @@ -6,6 +6,7 @@ export const gitPath = { DOT_GIT_INDEX: 'index', GIT_LOGS_REFS: join('logs', 'ref'), GIT_REFS: 'refs', + GIT_TAGS_REFS: join('refs', 'tags'), HEADS_GIT_REFS: 'heads' } as const diff --git a/extension/src/experiments/data/index.ts b/extension/src/experiments/data/index.ts index 8d86552767..86309ebf46 100644 --- a/extension/src/experiments/data/index.ts +++ b/extension/src/experiments/data/index.ts @@ -234,7 +234,8 @@ export class ExperimentsData extends BaseData { gitPath.DOT_GIT_HEAD, EXPERIMENTS_GIT_REFS, EXPERIMENTS_GIT_LOGS_REFS, - gitPath.HEADS_GIT_REFS + gitPath.HEADS_GIT_REFS, + gitPath.GIT_TAGS_REFS ] return createFileSystemWatcher(