diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts index 76699fa9cfe64e5bf0bf7efbadf7d50bbba30c7f..df78425ec8ab9eb427f71fcb9f38125e311e3ba1 100644 --- a/lib/util/git/index.ts +++ b/lib/util/git/index.ts @@ -367,6 +367,10 @@ export async function cloneSubmodules(shouldClone: boolean): Promise<void> { } } +export function isCloned(): boolean { + return gitInitialized; +} + export async function syncGit(): Promise<void> { if (gitInitialized) { return; diff --git a/lib/workers/repository/index.ts b/lib/workers/repository/index.ts index c829742543b359b59eecf5de29483be702ad78f8..03b70d28b750afc6d3a07f4ad318907d02f602e6 100644 --- a/lib/workers/repository/index.ts +++ b/lib/workers/repository/index.ts @@ -6,6 +6,7 @@ import { pkg } from '../../expose.cjs'; import { logger, setMeta } from '../../logger'; import { removeDanglingContainers } from '../../util/exec/docker'; import { deleteLocalFile, privateCacheDir } from '../../util/fs'; +import { isCloned } from '../../util/git'; import { clearDnsCache, printDnsStats } from '../../util/http/dns'; import * as queue from '../../util/http/queue'; import * as schemaUtil from '../../util/schema'; @@ -91,6 +92,7 @@ export async function renovateRepository( printDnsStats(); clearDnsCache(); schemaUtil.reportErrors(); - logger.info({ durationMs: splits.total }, 'Repository finished'); + const cloned = isCloned(); + logger.info({ cloned, durationMs: splits.total }, 'Repository finished'); return repoResult; }