Skip to content

docs: better git error reporting #1619

Description

@Winand

I use gitlab-ci-local inside Docker container on Windows, but the problem is not about Docker!

I've noted strange messages wih some repositories:

Using fallback git commit data
Unable to retrieve default remote branch, falling back to `main`.
Using fallback git remote data

And also .gitignore is.... ignored in those repos.

I checked the file git-data.ts and then tried to run git commands manually. I've found out that the problem is with ownership of .git folder when it is mounted inside Docker container: "detected dubious ownership in repository".

Expected behavior
It was not easy to identify this problem so I'd like to see extended error info in console on Git errors.

Host information
Windows 10
Docker Desktop
gitlab-ci-local 4.61.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature missing according to gitlab ci standard

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions