From e753d322ded2ac9d95eddd460bd276c3895eeee8 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Thu, 19 Mar 2020 00:14:00 -0400 Subject: . --- src/git-directory-helper.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/git-directory-helper.ts') diff --git a/src/git-directory-helper.ts b/src/git-directory-helper.ts index 37f06e1..f449e5c 100644 --- a/src/git-directory-helper.ts +++ b/src/git-directory-helper.ts @@ -53,6 +53,7 @@ export async function prepareExistingDirectory( } try { + core.startGroup('Removing previously created refs, to avoid conflicts') // Checkout detached HEAD if (!(await git.isDetached())) { await git.checkoutDetach() @@ -69,9 +70,11 @@ export async function prepareExistingDirectory( for (const branch of branches) { await git.branchDelete(true, branch) } + core.endGroup() // Clean if (clean) { + core.startGroup('Cleaning the repository') if (!(await git.tryClean())) { core.debug( `The clean command failed. This might be caused by: 1) path too long, 2) permission issue, or 3) file in use. For futher investigation, manually run 'git clean -ffdx' on the directory '${repositoryPath}'.` @@ -80,6 +83,7 @@ export async function prepareExistingDirectory( } else if (!(await git.tryReset())) { remove = true } + core.endGroup() if (remove) { core.warning( -- cgit v1.2.3