Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/git-directory-helper.ts
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2020-03-19 00:14:00 -0400
committereric sciple <ericsciple@users.noreply.github.com>2020-03-19 00:14:00 -0400
commite753d322ded2ac9d95eddd460bd276c3895eeee8 (patch)
treef691ad1b1e60d3601dc6fe4051aa1c1a7edaedc3 /src/git-directory-helper.ts
parentc740035296f5e758ddba55b13d486eceab434295 (diff)
.
Diffstat (limited to 'src/git-directory-helper.ts')
-rw-r--r--src/git-directory-helper.ts4
1 files changed, 4 insertions, 0 deletions
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(