Skip to content

[copilot] build can fail on <GitCommitInfo/> task #10210

@jonathanpeppers

Description

@jonathanpeppers

Android framework version

net10.0-android (Preview)

Affected platform version

.NET 10

Description

Context: https://github.com/dotnet/android/actions/runs/15687584254/job/44194537024#step:6:26227

The build failed on Linux with:

/home/runner/work/android/android/build-tools/scripts/XAVersionInfo.targets(23,5): error : Unable to parse branch name from: grafted, HEAD 

Copilot does some interesting things with git, so I assume that's the cause.

Handle this case and make it a build warning instead.

Steps to Reproduce

n/a

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

needs-triageIssues that need to be assigned.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions