Skip to content

[content-init] Workspace images containing files in /workspace break content init #8913

Open
@csweichel

Description

@csweichel

Bug description

When a workspace image contains files in /workspace/${checkoutLocation} the content init fails with

cannot initialize workspace: cannot initialize workspace: git initializer: git clone --depth=1 --no-single-branch https://github.com/your-org/your-repo.git . failed (exit status 128): fatal: destination path '.' already exists and is not an empty directory.

Steps to reproduce

Start a workspace with an image which contains files in /workspace/your-repo

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions