Skip to content

Error when creating coverage branch #8

@ComiR

Description

@ComiR

687be33#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R74 introduced a bug:

await execute(`rm -rf .`, { cwd: cloneInto });
rm -rf . leads to the following error output:

Retrieving existing branches
Coverage branch does not exist. Creating it.
Error: Error: Command failed: rm -rf .
rm: refusing to remove '.' or '..' directory: skipping '.'
Error: Command failed: rm -rf .
rm: refusing to remove '.' or '..' directory: skipping '.'
    at ChildProcess.exithandler (node:child_process:397:12)
    at ChildProcess.emit (node:events:390:[28](https://github.com/my/repo/runs/123456789?check_suite_focus=true#step:6:29))
    at maybeClose (node:internal/child_process:1064:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:[30](https://github.com/my/repo/runs/123456789?check_suite_focus=true#step:6:31)1:5) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'rm -rf .'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions