From a574af52d77f356890101a807a5e9acad63790e9 Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Thu, 7 Nov 2024 20:31:07 +0300 Subject: [PATCH] $mol_build git ensure fixes --- build/ensure/git/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/ensure/git/git.ts b/build/ensure/git/git.ts index 226f6ce761..ba138af00a 100644 --- a/build/ensure/git/git.ts +++ b/build/ensure/git/git.ts @@ -69,7 +69,7 @@ namespace $ { const repo = this.repo(dir) if (! repo) return 'master' - const res = this.$.$mol_run.spawn( { command: ['git', 'remote', 'show', repo.url ], dir } ) + const res = this.$.$mol_run.spawn( { command: ['git', 'remote', 'show', repo.url ], dir, dirty: true } ) return res.stdout.toString().match( /HEAD branch: (.*?)\n/ )?.[1] ?? 'master' }